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