From 6315f503a6e6d09259387383c7962906965cc9ba Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 11 May 2023 16:49:37 +1000 Subject: [PATCH] fix [ error --- git-migrate-org.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/git-migrate-org.sh b/git-migrate-org.sh index 2cfe346..313c7ea 100755 --- a/git-migrate-org.sh +++ b/git-migrate-org.sh @@ -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