From 5be31535228d685e1561c236e5e94ab6b248a5ec Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 13 Apr 2023 16:46:12 +0200 Subject: [PATCH] yet another guard try --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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