Fixed unbound bash varible
authorrohit <rohit>
Tue, 27 Mar 2018 13:52:29 +0000 (13:52 +0000)
committerrohit <rohit>
Tue, 27 Mar 2018 13:52:29 +0000 (13:52 +0000)
wrapfs-fix-branch.sh

index 7d4af5d8c8b9093e41e14e06ee295ac5195c80b0..3ef137f55c0580d184874a6697fd5cebddf64915 100755 (executable)
@@ -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