fix optional param code

This commit is contained in:
Trevor Batley 2023-05-12 10:17:18 +10:00
parent 4a855c986b
commit 2466258187

View File

@ -48,7 +48,7 @@ fi
MIRROR="copy" MIRROR="copy"
TARGETORG= TARGETORG=
for $param in $2 $3 $4; do for param in $2 $3 $4; do
if [ $param ] ; then if [ $param ] ; then
if [[ $param == "copy" || $param == "mirror" ]] ; then if [[ $param == "copy" || $param == "mirror" ]] ; then
MIRROR=$param MIRROR=$param