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