fix [ error

This commit is contained in:
Trevor Batley 2023-05-11 16:49:37 +10:00
parent c7b4c6acfb
commit 6315f503a6

View File

@ -41,17 +41,17 @@ curlsilent="-s"
if [ ${smegit_DEBUG} == true ] ; then DEBUG=true ; fi
if [ $DEBUG ] ; then
echo "found ini file: $inifilename"
curlsilent=
curlsilent="-v"
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
$MIRROR=$param
if [[ $param == "copy" || $param == "mirror" ]] ; then
MIRROR=$param
else
$TARGETORG=$param
TARGETORG=$param
fi
else
break
@ -84,7 +84,7 @@ for page in {1..10} ; do
)
if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi
if [ $RESPONSE == "[]" ] ; then
if [[ $RESPONSE == '[]' ]] ; then
# we have them all
break
else