Fixed showrev.sh when using the Bourne shell
authorSam Lantinga <slouken@libsdl.org>
Wed, 29 Apr 2020 15:32:08 +0000
changeset 13784cd8794af675f
parent 13783 d1b79a4a95be
child 13785 d5fe4ad4d29c
Fixed showrev.sh when using the Bourne shell
build-scripts/showrev.sh
     1.1 --- a/build-scripts/showrev.sh	Mon Apr 27 19:12:02 2020 -0700
     1.2 +++ b/build-scripts/showrev.sh	Wed Apr 29 15:32:08 2020 +0000
     1.3 @@ -7,7 +7,7 @@
     1.4  
     1.5  if [ -x "$(command -v hg)" ]; then
     1.6      rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
     1.7 -    if [ "$?" == 0 ]; then
     1.8 +    if [ $? = 0 ]; then
     1.9          echo $rev
    1.10          exit 0
    1.11      fi
    1.12 @@ -15,7 +15,7 @@
    1.13  
    1.14  if [ -x "$(command -v p4)" ]; then
    1.15      rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')"
    1.16 -    if [ "$?" == 0 ]; then
    1.17 +    if [ $? = 0 ]; then
    1.18          echo $rev
    1.19          exit 0
    1.20      fi