From 0ce4a46d65f4fe0c9d5e4a3e9e2ff349272ffb58 Mon Sep 17 00:00:00 2001 From: Martin Kennedy Date: Tue, 24 May 2022 17:04:11 -0400 Subject: [PATCH] fix: build: Only touch builder sentinel on success --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d7eb14f..70959b2 100644 --- a/Makefile +++ b/Makefile @@ -43,5 +43,4 @@ ${docker_src}/built/openwrt-builder-%.sentinel: \ else \ commit=$(shell echo $*); \ docker build -f $< --build-arg=commit="$$commit" --tag openwrt-builder-$* . ; \ - fi; \ - touch $@; + fi && touch $@;