scmversion: Fix generation on Linux

This commit is contained in:
Connor McLaughlin 2022-08-10 17:59:13 +10:00
parent a5585f047c
commit 2842167184
1 changed files with 1 additions and 1 deletions

View File

@ -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))