From: rohit Date: Tue, 27 Mar 2018 13:52:29 +0000 (+0000) Subject: Fixed unbound bash varible X-Git-Tag: ezk-review~10 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=2905befe993a80cf42d9b5003fbb60290cbd3538;p=wrapfs-mgmt.git Fixed unbound bash varible --- diff --git a/wrapfs-fix-branch.sh b/wrapfs-fix-branch.sh index 7d4af5d..3ef137f 100755 --- a/wrapfs-fix-branch.sh +++ b/wrapfs-fix-branch.sh @@ -61,8 +61,8 @@ esac # make sure it ends with *.y.git if [[ "$WRAPFS_REPO" != *".y" ]]; then wrapfs_repo=`git config --get-regexp "remote.origin.url" "wrapfs" | sed 's/.*\///g'` - if [ "$repo" != "" ]; then - WRAPFS_REPO=$repo + if [ "$wrapfs_repo" != "" ]; then + WRAPFS_REPO=$wrapfs_repo else WRAPFS_REPO=$(echo $WRAPFS_REPO | sed s/git/y.git/g) fi