fix [ error
This commit is contained in:
parent
c7b4c6acfb
commit
6315f503a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user