From b59071509800b3b40d5917c9196828f2cd1a654f Mon Sep 17 00:00:00 2001 From: aburford Date: Mon, 9 May 2022 22:49:51 -0400 Subject: [PATCH] fix debug in fix-remotes.sh --- fix-remotes.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fix-remotes.sh b/fix-remotes.sh index dd28fcc..827c635 100755 --- a/fix-remotes.sh +++ b/fix-remotes.sh @@ -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 -- 2.34.1