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