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
This commit is contained in:
Paul Wise 2026-01-28 08:05:26 +08:00
parent 4f9ca2df8b
commit 9320a55a39
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3

View file

@ -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 \