We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 963f027 commit ea0c28aCopy full SHA for ea0c28a
windows/makefile
@@ -19,7 +19,7 @@ VERSION = $(GITHUB_REF_NAME)
19
!ENDIF
20
21
# Git commit hash (unique identifier for build)
22
-!IF [powershell -NoProfile -Command "$$hash = git rev-parse --short HEAD 2>$$null; if ($$hash) { Set-Content -Path .hash.tmp -Value ""COMMIT_HASH = $$hash"" -NoNewline; exit 0 } else { exit 1 }"] == 0
+!IF [cmd /c "for /f %i in ('git rev-parse --short HEAD 2^>nul') do @echo COMMIT_HASH = %i > .hash.tmp 2^>nul && exit 0 || exit 1"] == 0
23
!INCLUDE .hash.tmp
24
!ELSE
25
COMMIT_HASH = unknown
0 commit comments