Skip to content

Commit 25a8c2c

Browse files
committed
debug
1 parent 3b47466 commit 25a8c2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

windows/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ VERSION = $(GITHUB_REF_NAME)
1919
!ENDIF
2020

2121
# Git commit hash (unique identifier for build)
22-
!IF [for /f "delims=" %i in ('git rev-parse --short HEAD 2^>nul') do @echo COMMIT_HASH = %i > .hash.tmp 2^>nul] == 0
23-
!INCLUDE .hash.tmp
22+
!IF [cmd /c "git rev-parse --short HEAD > .hash.tmp 2>nul && (echo COMMIT_HASH = & type .hash.tmp) > .commit.tmp 2>nul"] == 0
23+
!INCLUDE .commit.tmp
2424
!ELSE
2525
COMMIT_HASH = unknown
2626
!ENDIF
27-
# Clean up temp file
28-
!IF [del .hash.tmp 2>nul]
27+
# Clean up temp files
28+
!IF [del .hash.tmp .commit.tmp 2>nul]
2929
!ENDIF
3030

3131
APP_NAME_VERSION = $(APP_NAME) $(VERSION)

0 commit comments

Comments
 (0)