mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-26 20:51:25 +02:00
build: fix dirty detection at the end of release build
was using Bashisms
This commit is contained in:
parent
7ab51fad0d
commit
707f070a3c
5
Makefile
5
Makefile
@ -133,8 +133,9 @@ release: $(RELEASE_BINS) $(RELEASE_NOARCH)
|
|||||||
cd "$(ARTIFACTDIR)/release" && sha512sum $$(ls | sort) > sha512sum.txt
|
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
|
@# 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 git describe --dirty 2>/dev/null | grep dirty >/dev/null; then \
|
||||||
if [ "$(ZREPL_VERSION)" == "" ]; then \
|
echo '[INFO] either git reports checkout is dirty or git is not installed or this is not a git checkout'; \
|
||||||
echo "[WARN] git checkout is dirty and make variable ZREPL_VERSION was not used to override"; \
|
if [ "$(ZREPL_VERSION)" = "" ]; then \
|
||||||
|
echo '[WARN] git checkout is dirty and make variable ZREPL_VERSION was not used to override'; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user