From: Sergey Matveev Date: Wed, 6 Jan 2021 19:11:43 +0000 (+0300) Subject: Shorter cleanup example X-Git-Tag: v5.5.0^2~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8801c4792a867ae30135cadc18f50744ad47b900;p=nncp.git Shorter cleanup example --- diff --git a/doc/git-bundler.sh b/doc/git-bundler.sh index 70df771..bd7dd15 100755 --- a/doc/git-bundler.sh +++ b/doc/git-bundler.sh @@ -1,13 +1,7 @@ #!/bin/sh -ex tmp=$(mktemp) - -cleanup() -{ - rm -f $tmp -} -trap cleanup HUP PIPE INT QUIT TERM EXIT - +trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT read revs cd $HOME/git/$1.git git bundle create $tmp $revs