Need to remove the temp file regardless

This commit is contained in:
Brian Goad 2016-10-21 14:05:44 -04:00
parent 249a6cd27c
commit 7ff05f2977

View file

@ -478,6 +478,7 @@ main() {
rm -f "$tmpfile"
else
cp -f "$tmpfile" "$changelog"
rm -f "$tmpfile"
# Use `eval` to handle GIT_EDITOR which contains space and options,
# like ""C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst ".
# Thanks @JanSchulz to inspire me this solution