Skip to content

Commit

Permalink
Fixed required tools bug
Browse files Browse the repository at this point in the history
  • Loading branch information
framps committed May 23, 2020
1 parent d38666f commit c1c8a0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pishrink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ parallel=false
verbose=false
prep=false
ziptool=""
required_tools="$REQUIRED_TOOLS"

while getopts ":adhprsvzZ" opt; do
case "${opt}" in
Expand Down Expand Up @@ -142,7 +141,7 @@ if [[ -n $ziptool ]]; then
error $LINENO "$ziptool is an unsupported ziptool."
exit -17
else
if [[ $parallel == true && ziptool == "gzip" ]]; then
if [[ $parallel == true && $ziptool == "gzip" ]]; then
REQUIRED_TOOLS="$REQUIRED_TOOLS pigz"
else
REQUIRED_TOOLS="$REQUIRED_TOOLS $ziptool"
Expand Down

0 comments on commit c1c8a0b

Please sign in to comment.