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