fix debug in fix-remotes.sh
authoraburford <andrew.burford@stonybrook.edu>
Tue, 10 May 2022 02:49:51 +0000 (22:49 -0400)
committeraburford <andrew.burford@stonybrook.edu>
Tue, 10 May 2022 02:49:51 +0000 (22:49 -0400)
fix-remotes.sh

index dd28fcc4ebb8f870b02a9f22907c6f9de8f417ef..827c63515b854434e8c8c5a359e22f4a3ab12479 100755 (executable)
@@ -4,7 +4,7 @@
 FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git"
 KORG_GIT="git://git.kernel.org/pub/scm/linux/kernel/git"
 
-DEBUG="yes" # set to "no" to turn off debug
+DEBUG="no" # set to "no" to turn off debug
 
 # function to execute commands
 runcmd() {
@@ -34,7 +34,7 @@ else
     THIS_REPO="$1"     # this is how you can "force" a wrapfs-latest clone
                        # to rebase to a stable kernel say, wrapfs-5.18
 fi
-test "$DEBUG" eq "yes" && echo THIS_REPO:$THIS_REPO
+test "$DEBUG" == "yes" && echo THIS_REPO:$THIS_REPO
 case "$THIS_REPO" in
     2.6.* | 3.* | 4.* | 5.* | latest ) ;;
     * ) echo This repo is unknown: $THIS_REPO
@@ -46,13 +46,13 @@ esac
 # `git remote get-url origin` is the newest syntax but the syntax below
 # works on newer and older versions of git
 THIS_ORIGIN_URL=`git config --get remote.origin.url 2>/dev/null`
-test "$DEBUG" eq "yes" && echo THIS_ORIGIN_URL=$THIS_ORIGIN_URL
+test "$DEBUG" == "yes" && echo THIS_ORIGIN_URL=$THIS_ORIGIN_URL
 # expected origin URL (for FSL git server)
 case "$THIS_REPO" in
     latest ) EXPECTED_ORIGIN_URL="$FSL_GIT/wrapfs-${THIS_REPO}.git" ;;
     * ) EXPECTED_ORIGIN_URL="$FSL_GIT/wrapfs-${THIS_REPO}.y.git" ;;
 esac
-test "$DEBUG" eq "yes" && echo EXPECTED_ORIGIN_URL=$EXPECTED_ORIGIN_URL
+test "$DEBUG" == "yes" && echo EXPECTED_ORIGIN_URL=$EXPECTED_ORIGIN_URL
 
 # set new remote URL as needed
 if test "$THIS_ORIGIN_URL" != "$EXPECTED_ORIGIN_URL" ; then
@@ -67,7 +67,7 @@ fi
 
 # find out the URL for the remote "korg"
 THIS_KORG_URL=`git config --get remote.korg.url 2>/dev/null`
-test "$DEBUG" eq "yes" && echo THIS_KORG_URL=$THIS_KORG_URL
+test "$DEBUG" == "yes" && echo THIS_KORG_URL=$THIS_KORG_URL
 # expected korg URL
 case "$THIS_REPO" in
     latest )
@@ -79,7 +79,7 @@ case "$THIS_REPO" in
        KORG_BRANCH="linux-${THIS_REPO}.y"
        ;;
 esac
-test "$DEBUG" eq "yes" && echo EXPECTED_KORG_URL=$EXPECTED_KORG_URL
+test "$DEBUG" == "yes" && echo EXPECTED_KORG_URL=$EXPECTED_KORG_URL
 
 # set new remote URL as needed
 if test "$THIS_KORG_URL" != "$EXPECTED_KORG_URL" ; then