scripts/generateVersion.sh: convert to posix (#9433)

This commit is contained in:
nyx
2025-02-18 09:18:22 -05:00
committed by GitHub
parent e59623d1d5
commit 3352317ca8

View File

@@ -2,8 +2,8 @@
# if the git directory doesn't exist, don't gather data to avoid overwriting, unless
# the version file is missing altogether (otherwise compiling will fail)
if [[ ! -d ./.git ]]; then
if [[ -f ./src/version.h ]]; then
if [ ! -d ./.git ]; then
if [ -f ./src/version.h ]; then
exit 0
fi
fi