diff --git a/Makefile b/Makefile index 00eade9..a330b58 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ SHELL := /bin/bash default: build guard: - @ if [ -z "$(git status --porcelain)" ]; then echo "git repo not clean"; exit 1; fi + @ [ ! -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "git not clean!" && exit 1 build: podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) .