aboutsummaryrefslogtreecommitdiff
path: root/install.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-18 13:30:57 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-18 13:30:57 -0500
commit3166627f1485e2f05421fe874b2236852fe5d017 (patch)
treed22a6c9b0e61907d15678146a3298efab1beed5b /install.c
parent2be3d5c5d905bd748b8ce511033065fa5a83a59c (diff)
downloadspmc-3166627f1485e2f05421fe874b2236852fe5d017.tar.gz
Improved output and error handling
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;