fix param

This commit is contained in:
Trevor Batley 2023-05-11 16:19:24 +10:00
parent 0d8ca693a3
commit c7b4c6acfb

View File

@ -46,16 +46,16 @@ fi
MIRROR="copy"
TARGETORG=
#if [ $2 ] ; then TARGETORG=$2 ; fi
for $param in {$2 $3} ; do
if [ $PARAM ] ; then
if [ $param == "copy" || $param == "mirror" ] ; then
for $param in $2 $3 ; do
if [ $param ] ; then
if [ $param == "copy" || $param == "mirror" ] ; then
$MIRROR=$param
else
else
$TARGETORG=$param
fi
else
break
fi
fi
else
break
fi
done