git/commit: squelch error when run outside repository

when running outside of a repository, we would try to
remove '$msgfile.tmp', but we had never actually set
'$msgfile'.

the error is harmless, but annoying.
This commit is contained in:
Ori Bernstein 2022-01-09 17:37:29 +00:00
parent 47b7dc5ccd
commit 9e79aaceba

View file

@ -101,7 +101,8 @@ fn update{
}
fn sigexit{
rm -f $msgfile $msgfile.tmp
if(~ ! $#msgfile 0)
rm -f $msgfile $msgfile.tmp
}
gitup