From 9e79aaceba1b6350908e23145427ff2ce72f064c Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 9 Jan 2022 17:37:29 +0000 Subject: 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. --- sys/src/cmd/git/commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/git') diff --git a/sys/src/cmd/git/commit b/sys/src/cmd/git/commit index 90f9cf26a..5b61fe1eb 100644 --- a/sys/src/cmd/git/commit +++ b/sys/src/cmd/git/commit @@ -101,7 +101,8 @@ fn update{ } fn sigexit{ - rm -f $msgfile $msgfile.tmp + if(~ ! $#msgfile 0) + rm -f $msgfile $msgfile.tmp } gitup -- cgit v1.2.3