瀏覽代碼

Saving changes before switching to branch integrating-indoor-map

cdmoss 2 年之前
父節點
當前提交
b30d87c793
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      switchtobranch.sh

+ 2 - 2
switchtobranch.sh

@@ -29,10 +29,10 @@ fi
 echo "Switching to branch $1...";
 checkoutresult=`git checkout $1`;
 echo $checkoutresult
-if [ "$checkoutresult" == "Switched to branch $1" ]; then
+if [ "$checkoutresult" == "Switched to branch '$1'" ]; then
     echo "Switched to branch $1";
 fi
-if [ "$checkoutresult" != "Switched to branch" ]; then
+if [ "$checkoutresult" != "Switched to branch '$1'" ]; then
     echo "Failed to switch to branch $1";
     exit 1;
 fi