diff --git a/src/scmversion/gen_scmversion.sh b/src/scmversion/gen_scmversion.sh index 4917c005e..fd013a82b 100755 --- a/src/scmversion/gen_scmversion.sh +++ b/src/scmversion/gen_scmversion.sh @@ -3,7 +3,7 @@ VERSION_FILE="scmversion.cpp" CURDIR=$(pwd) -if [ "$(uname -s)" == "Darwin" ]; then +if [ "$(uname -s)" = "Darwin" ]; then cd "$(dirname $(python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0"))" else cd $(dirname $(readlink -f $0))