Skip to content

Commit

Permalink
Fixed showrev.sh when using the Bourne shell
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 29, 2020
1 parent beab15b commit 05a60c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-scripts/showrev.sh
Expand Up @@ -7,15 +7,15 @@ cd $SDL_ROOT

if [ -x "$(command -v hg)" ]; then
rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
if [ "$?" == 0 ]; then
if [ $? = 0 ]; then
echo $rev
exit 0
fi
fi

if [ -x "$(command -v p4)" ]; then
rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')"
if [ "$?" == 0 ]; then
if [ $? = 0 ]; then
echo $rev
exit 0
fi
Expand Down

0 comments on commit 05a60c2

Please sign in to comment.