fixup: prevent failure when the -d/--debug flag is not provided

Fixes: https://github.com/tj/git-extras/pull/1227#discussion_r2703111483
This commit is contained in:
Paul Wise 2026-01-19 13:30:00 +08:00
parent d11e02832f
commit 4f9ca2df8b
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3

View file

@ -114,6 +114,9 @@ do
printf "\033[00m\n"
done
test -n "$DEBUG" && sort -nr "$DEBUG"
rm -f "$MERGED_LOG"
rm -f "$DEBUG" "$MERGED_LOG"
if [[ -n "$DEBUG" ]] ; then
sort -nr "$DEBUG" &&
rm -f "$DEBUG"
fi