Skip to content

Commit 544287d

Browse files
committed
Fix makefile pack version detection
Signed-off-by: Javier Romero <[email protected]>
1 parent 8aed414 commit 544287d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,12 @@ install-pack-cli: upgrade-pack
8282
else \
8383
echo "pack already installed at $(PACK_BIN)"; \
8484
fi
85-
@echo "pack version: $(shell pack --version)"
85+
@echo "pack version: " `pack --version`
8686

8787
.PHONY: check-pack-cli-version
88-
check-pack-cli-version: export INSTALLED_VERSION:=$(shell pack --version | cut -d '+' -f 1)
8988
check-pack-cli-version:
90-
@echo "> Installed pack version: $(INSTALLED_VERSION)"
91-
@if [ "$(INSTALLED_VERSION)" != "$(PACK_VERSION)" ]; then \
89+
@echo "> Installed pack version: " `pack --version | cut -d '+' -f 1`
90+
@if [ `pack --version | cut -d '+' -f 1` != "$(PACK_VERSION)" ]; then \
9291
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
9392
echo "WARNING: Expected pack version: $(PACK_VERSION)"; \
9493
echo "You may need to upgrade your version of pack! "; \

0 commit comments

Comments
 (0)