aboutsummaryrefslogtreecommitdiff
path: root/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'install.c')
-rw-r--r--install.c4
1 files changed, 2 insertions, 2 deletions
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;