Fixed required tools bug

This commit is contained in:
framp 2020-05-23 11:11:49 +02:00
parent d38666fefd
commit c1c8a0b4a2
No known key found for this signature in database
GPG Key ID: D855C81E6393D841
1 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,6 @@ parallel=false
verbose=false
prep=false
ziptool=""
required_tools="$REQUIRED_TOOLS"
while getopts ":adhprsvzZ" opt; do
case "${opt}" in
@ -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"