diff --git a/git-migrate-org.sh b/git-migrate-org.sh index 5a21712..2cfe346 100755 --- a/git-migrate-org.sh +++ b/git-migrate-org.sh @@ -46,16 +46,16 @@ 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 +for $param in $2 $3 ; do + if [ $param ] ; then + if [ $param == "copy" || $param == "mirror" ] ; then $MIRROR=$param - else + else $TARGETORG=$param - fi - else - break - fi + fi + else + break + fi done