chore: Use type on powershell/command prompt only (#12794)
This commit is contained in:
parent
d59ea7d0ce
commit
1899de059e
3
Makefile
3
Makefile
|
|
@ -2,7 +2,8 @@ ifneq (,$(filter $(OS),Windows_NT Windows))
|
||||||
EXEEXT=.exe
|
EXEEXT=.exe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
next_version := $(file < build_version.txt)
|
cat := $(if $(filter $(OS),sh.exe),type,cat)
|
||||||
|
next_version := $(shell $(cat) build_version.txt)
|
||||||
tag := $(shell git describe --exact-match --tags 2>/dev/null)
|
tag := $(shell git describe --exact-match --tags 2>/dev/null)
|
||||||
|
|
||||||
branch := $(shell git rev-parse --abbrev-ref HEAD)
|
branch := $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue