aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-06-22 16:33:08 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-06-22 16:33:08 -0400
commit1408cf26270337c7c95cb0b5075fd303d6227b48 (patch)
treee6a69f131ce73059b8915c26085e138db5815840
parent460237e94dfead390a7b8372af5c0ebf8c1f226b (diff)
downloadspmc-1408cf26270337c7c95cb0b5075fd303d6227b48.tar.gz
Report errors from bsdtar
-rw-r--r--lib/archive.c4
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);