From 3166627f1485e2f05421fe874b2236852fe5d017 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 18 Dec 2019 13:30:57 -0500 Subject: Improved output and error handling --- install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install.c') diff --git a/install.c b/install.c index 95d4b4a..e647d31 100644 --- a/install.c +++ b/install.c @@ -6,8 +6,8 @@ int install(const char *destroot, const char *_package) { fprintf(SYSERROR); return -1; } - printf("Installing: %s\n", package); - if (access(destroot, F_OK) != 0) { + + if (exists(destroot) != 0) { if (mkdirs(destroot, 0755) != 0) { fprintf(SYSERROR); return -2; -- cgit