From 707f070a3cf570019fa8c2fb05d328c4a34ca0e9 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 1 Dec 2018 12:52:41 +0100 Subject: [PATCH] build: fix dirty detection at the end of release build was using Bashisms --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c6fc773..a0f31a6 100644 --- a/Makefile +++ b/Makefile @@ -133,8 +133,9 @@ release: $(RELEASE_BINS) $(RELEASE_NOARCH) cd "$(ARTIFACTDIR)/release" && sha512sum $$(ls | sort) > sha512sum.txt @# note that we use ZREPL_VERSION and not _ZREPL_VERSION because we want to detect the override @if git describe --dirty 2>/dev/null | grep dirty >/dev/null; then \ - if [ "$(ZREPL_VERSION)" == "" ]; then \ - echo "[WARN] git checkout is dirty and make variable ZREPL_VERSION was not used to override"; \ + echo '[INFO] either git reports checkout is dirty or git is not installed or this is not a git checkout'; \ + if [ "$(ZREPL_VERSION)" = "" ]; then \ + echo '[WARN] git checkout is dirty and make variable ZREPL_VERSION was not used to override'; \ exit 1; \ fi; \ fi;