chore: Use type on powershell/command prompt only (#12794)

This commit is contained in:
Joshua Powers 2023-03-06 04:14:37 -07:00 committed by GitHub
parent d59ea7d0ce
commit 1899de059e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ ifneq (,$(filter $(OS),Windows_NT Windows))
EXEEXT=.exe
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)
branch := $(shell git rev-parse --abbrev-ref HEAD)