From 3e8c266ae0d246ef7d1446d6e37320e481f405db Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 13 Apr 2023 16:41:58 +0200 Subject: [PATCH] fixed guard --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) .