From 1899de059e69a155311fb9c8657a2ef9e5e09211 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 6 Mar 2023 04:14:37 -0700 Subject: [PATCH] chore: Use type on powershell/command prompt only (#12794) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f35ac8d7b..facf7c479 100644 --- a/Makefile +++ b/Makefile @@ -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)