From c7b4c6acfbce3032053c1b5ea1bad35553f1783e Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 11 May 2023 16:19:24 +1000 Subject: [PATCH] fix param --- git-migrate-org.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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