aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 569ab3f..601cf3c 100755
--- a/kerl
+++ b/kerl
@@ -303,7 +303,7 @@ do_git_build()
fi
cd otp_src_git
git branch -a | grep "$2" > /dev/null 2>&1
- if [ $? -ne 0 ]; then
+ if [ $? -eq 0 ]; then
git checkout $2 > /dev/null 2>&1
else
git checkout -b $2 origin/$2 > /dev/null 2>&1