diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-10-13 20:33:12 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-10-13 20:33:12 +0200 |
commit | 8f9b0958e8a2d976a274f7c12ee05a4863fce3ad (patch) | |
tree | 42be7f48acd22a0d513e60cd67937ced3710b208 /src/cli | |
parent | 9a9234dc46a0584f5f8ffd043ca5765f1e97f81e (diff) | |
download | OFQT-8f9b0958e8a2d976a274f7c12ee05a4863fce3ad.tar.gz OFQT-8f9b0958e8a2d976a274f7c12ee05a4863fce3ad.zip |
correct makeDir check, optimize images
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/updater.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cli/updater.c b/src/cli/updater.c index f6120c7..bdccaca 100644 --- a/src/cli/updater.c +++ b/src/cli/updater.c @@ -78,7 +78,6 @@ void update_setup(char* of_dir, char* remote, int local_rev, int remote_rev) } pool_complete(pool); - fprintf(stderr, "\rChecking %zu/%zu", rev->file_count, rev->file_count); pool_free(pool); free(thread_info); @@ -108,7 +107,7 @@ void update_setup(char* of_dir, char* remote, int local_rev, int remote_rev) char* buf = malloc(len); fprintf(stderr, "\rCreating %zu/%zu", i+1, rev->file_count); snprintf(buf, len, "%s%s%s", of_dir, OS_PATH_SEP, file->path); - if (!isDir(buf) && !makeDir(buf)) + if (!isDir(buf) && makeDir(buf)) { fprintf(stderr, "\nFailed to create %s\n", file->path); } |