aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlitterbox3
1 files changed, 2 insertions, 1 deletions
diff --git a/litterbox b/litterbox
index 1159de9..499fe9d 100755
--- a/litterbox
+++ b/litterbox
@@ -226,7 +226,6 @@ shift $(($OPTIND - 1))
# sanity check options and external binaries' existence.
[ "$GZIP" = 1 -a "$ZIP" = 1 ] && die "can't give both -g and -z"
-[ "$GZIP" = 1 -o "$ZIP" = 1 ] && COMPRESS=1
if [ "$ZIP" = 1 ] && ! check_path zip; then
warn "can't find zip on PATH, disabling -z option"
@@ -238,6 +237,8 @@ if [ "$GZIP" = 1 ] && ! check_path gzip; then
GZIP=0
fi
+[ "$GZIP" = 1 -o "$ZIP" = 1 ] && COMPRESS=1
+
if [ "$DOWNLOAD" = 1 -o "$ENC" = 1 ]; then
check_path openssl || die "can't find openssl on path, -c/-d won't work"
fi