ref: 90d3000296c6dbc5b6c77d86805e6576dfb5e7ef
parent: 9482bf076cf23078cf941db26038e7e54bf95224
author: kvik <kvik@a-b.xyz>
date: Sat Feb 15 09:07:01 EST 2020
Clean up temporary files on exit
--- a/commit
+++ b/commit
@@ -9,7 +9,6 @@
fn whoami{ name=`{git/conf user.name} email=`{git/conf user.email}- msgfile=.git/git-msg.$pid
if(test -f /adm/keys.who){if(~ $name '')
name=`{awk -F'|' '$1=="'$user'" {x=$3} END{print x}' </adm/keys.who}@@ -95,8 +94,8 @@
}
}
-fn cleanup{- rm -f $msgfile
+fn sigexit{+ rm -f $msgfile $msgfile.tmp
rm -f .git/index9/merge-parents
}
@@ -117,5 +116,4 @@
editmsg
commit
update
- cleanup
} || die 'could not commit:' $status
--
⑨