diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-06-22 16:33:08 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-06-22 16:33:08 -0400 |
commit | 1408cf26270337c7c95cb0b5075fd303d6227b48 (patch) | |
tree | e6a69f131ce73059b8915c26085e138db5815840 | |
parent | 460237e94dfead390a7b8372af5c0ebf8c1f226b (diff) | |
download | spmc-1408cf26270337c7c95cb0b5075fd303d6227b48.tar.gz |
Report errors from bsdtar
-rw-r--r-- | lib/archive.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/archive.c b/lib/archive.c index 18f0437..6452647 100644 --- a/lib/archive.c +++ b/lib/archive.c @@ -102,6 +102,10 @@ int tar_extract_archive(const char *_archive, const char *_destination) { } status = proc->returncode; + if (status != 0 && SPM_GLOBAL.verbose) { + fprintf(stderr, "%s", proc->output); + } + shell_free(proc); free(archive); free(destination); |