fixed guard

This commit is contained in:
Jonas Forsberg 2023-04-13 16:41:58 +02:00
parent 7f0274c02e
commit 3e8c266ae0

View File

@ -11,7 +11,7 @@ SHELL := /bin/bash
default: build default: build
guard: 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: build:
podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) . podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) .