diff options
author | Sam Lantinga <slouken@libsdl.org> | 2020-04-29 15:32:08 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2020-04-29 15:32:08 +0000 |
commit | 4fd61d46d2526a64afc77562e2b5084e9316b8ad (patch) | |
tree | 48b230b7cd88623b3ba37e716732a920b131e0ae /build-scripts | |
parent | 5b79c646d5bf3b5216c7af3364564adef66480ac (diff) | |
download | sdl-4fd61d46d2526a64afc77562e2b5084e9316b8ad.tar.gz |
Fixed showrev.sh when using the Bourne shell
Diffstat (limited to 'build-scripts')
-rwxr-xr-x | build-scripts/showrev.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-scripts/showrev.sh b/build-scripts/showrev.sh index 788d7ef2f..d3b131a14 100755 --- a/build-scripts/showrev.sh +++ b/build-scripts/showrev.sh @@ -7,7 +7,7 @@ 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 @@ -15,7 +15,7 @@ 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 |