summaryrefslogtreecommitdiffstats
path: root/twrpTar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twrpTar.cpp')
-rw-r--r--twrpTar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 8bfbecd13..59d75d0a2 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -1251,7 +1251,7 @@ int twrpTar::closeTar() {
LOGERR("Unable to close tar archive: '%s'\n", tarfn.c_str());
return -1;
}
- if (Archive_Current_Type > 1) {
+ if (Archive_Current_Type > 0) {
close(fd);
int status;
if (pigz_pid > 0 && TWFunc::Wait_For_Child(pigz_pid, &status, "pigz") != 0)