Skip to content

Commit ea0c28a

Browse files
committed
try cmd instead of powershell
1 parent 963f027 commit ea0c28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ VERSION = $(GITHUB_REF_NAME)
1919
!ENDIF
2020

2121
# 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
22+
!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
2323
!INCLUDE .hash.tmp
2424
!ELSE
2525
COMMIT_HASH = unknown

0 commit comments

Comments
 (0)