diff --git a/tools/prepare-commit-msg b/tools/prepare-commit-msg index 5f60954d4c..43e94b074e 100755 --- a/tools/prepare-commit-msg +++ b/tools/prepare-commit-msg @@ -23,7 +23,7 @@ else if echo $EDITMSG | grep "# Please enter the commit message for your changes.*" then echo "No commit message given, preparing template for editing." - sed -i "1s/^/\#\: \; Fix \#$NUMBER\n/" $1 + sed -i.bak "1s/^/\#\: \; Fix \#$NUMBER\n/" $1 && rm $1.bak else echo "Using CLI commit message." fi