aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authord0rc <[email protected]>2012-11-22 04:50:24 +0400
committerd0rc <[email protected]>2012-11-22 04:50:24 +0400
commit055a912feab8307780d7b6124911de9d5636766a (patch)
tree20304edff44e7163543916b004d5ac97b07a4d37 /kerl
parente0dd227654dfd9729413c319f61cad0490a04105 (diff)
downloadkerl-055a912feab8307780d7b6124911de9d5636766a.tar.gz
kerl-055a912feab8307780d7b6124911de9d5636766a.tar.bz2
kerl-055a912feab8307780d7b6124911de9d5636766a.zip
fixing grep exit code handling
Diffstat (limited to 'kerl')
-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