diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-18 13:30:57 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-18 13:30:57 -0500 |
commit | 3166627f1485e2f05421fe874b2236852fe5d017 (patch) | |
tree | d22a6c9b0e61907d15678146a3298efab1beed5b /install.c | |
parent | 2be3d5c5d905bd748b8ce511033065fa5a83a59c (diff) | |
download | spmc-3166627f1485e2f05421fe874b2236852fe5d017.tar.gz |
Improved output and error handling
Diffstat (limited to 'install.c')
-rw-r--r-- | install.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |