Skip to content

Commit

Permalink
scmversion: Fix generation on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 10, 2022
1 parent a5585f0 commit 2842167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scmversion/gen_scmversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2842167

Please sign in to comment.