Fixed required tools bug
This commit is contained in:
parent
d38666fefd
commit
c1c8a0b4a2
|
@ -91,7 +91,6 @@ parallel=false
|
||||||
verbose=false
|
verbose=false
|
||||||
prep=false
|
prep=false
|
||||||
ziptool=""
|
ziptool=""
|
||||||
required_tools="$REQUIRED_TOOLS"
|
|
||||||
|
|
||||||
while getopts ":adhprsvzZ" opt; do
|
while getopts ":adhprsvzZ" opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
|
@ -142,7 +141,7 @@ if [[ -n $ziptool ]]; then
|
||||||
error $LINENO "$ziptool is an unsupported ziptool."
|
error $LINENO "$ziptool is an unsupported ziptool."
|
||||||
exit -17
|
exit -17
|
||||||
else
|
else
|
||||||
if [[ $parallel == true && ziptool == "gzip" ]]; then
|
if [[ $parallel == true && $ziptool == "gzip" ]]; then
|
||||||
REQUIRED_TOOLS="$REQUIRED_TOOLS pigz"
|
REQUIRED_TOOLS="$REQUIRED_TOOLS pigz"
|
||||||
else
|
else
|
||||||
REQUIRED_TOOLS="$REQUIRED_TOOLS $ziptool"
|
REQUIRED_TOOLS="$REQUIRED_TOOLS $ziptool"
|
||||||
|
|
Loading…
Reference in New Issue