From 897512cd0fbe5a86208915f04d1056537ea4f4c9 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 6 Sep 2021 10:44:19 -0700 Subject: [PATCH] Makefile: Don't create the commit-patch.fat unless it worked --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2db8bfb..7bab91a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ ALL = $(BIN) $(MAN) $(ELISP) $(DOC) all: $(ALL) commit-patch.fat: commit-patch - carton exec fatpack pack $< > $@ + carton exec fatpack pack $< > $@.new || { rm -f $@.new; false; } + mv -f $@.new $@ chmod +x $@ commit-patch.1: commit-patch -- 2.51.2