From 9320a55a3900628e0f88d3d055b4cefb08429eb8 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Wed, 28 Jan 2026 08:05:26 +0800 Subject: [PATCH] fixup: delete temporary script file after the loop Otherwise it wouldn't get deleted when $(COMMANDS) is empty. Fixes: https://github.com/tj/git-extras/pull/1227#discussion_r2720886367 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6fe7735..9e7126f 100644 --- a/Makefile +++ b/Makefile @@ -74,9 +74,9 @@ install: check fi; \ tail -n +2 bin/$(COMMAND) >> $(TEMPFILE); \ cp -f $(TEMPFILE) $(DESTDIR)$(BINPREFIX)/$(COMMAND); \ - rm -f $(TEMPFILE); \ fi; \ ) + rm -f $(TEMPFILE) @if [ -z "$(wildcard man/git-*.1)" ]; then \ echo "WARNING: man pages not created, use 'make docs' (which requires 'ronn' ruby lib)"; \ else \