Skip to content

Commit

Permalink
portable shell code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Mar 20, 2016
1 parent b8298d3 commit e1cce47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/exabgp
Expand Up @@ -5,7 +5,7 @@ git status 2> /dev/null > /dev/null
# returns 128 if not in a git repo
# returns 127 if git is not installed

if [ $? == 0 ]; then
if [ $? -eq 0 ]; then
GIT_BRANCH=`git branch | grep "*" | awk '{ print $2}'`
GIT_COMMIT=`git log -1 | head -1 | awk '{ print $2 }'`
export EXABGP_VERSION="${GIT_BRANCH}-${GIT_COMMIT}"
Expand Down

0 comments on commit e1cce47

Please sign in to comment.