1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-04-10 15:32:17 +02:00

scripts/generateVersion.sh: convert to posix ()

This commit is contained in:
nyx 2025-02-18 09:18:22 -05:00 committed by GitHub
parent e59623d1d5
commit 3352317ca8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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