diff options
author | d0rc <[email protected]> | 2012-11-22 04:50:24 +0400 |
---|---|---|
committer | d0rc <[email protected]> | 2012-11-22 04:50:24 +0400 |
commit | 055a912feab8307780d7b6124911de9d5636766a (patch) | |
tree | 20304edff44e7163543916b004d5ac97b07a4d37 /kerl | |
parent | e0dd227654dfd9729413c319f61cad0490a04105 (diff) | |
download | kerl-055a912feab8307780d7b6124911de9d5636766a.tar.gz kerl-055a912feab8307780d7b6124911de9d5636766a.tar.bz2 kerl-055a912feab8307780d7b6124911de9d5636766a.zip |
fixing grep exit code handling
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |