X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fgit-bundler.sh;h=bd7dd15922303823b3a2d4328eed02583152cd27;hb=53b736c0d8998982b232e8f25d27753ea3a1e309;hp=70df7710a6ef3deae9ff2d853aedc99d9ae1aa48;hpb=dd887c15fa21071a2f4931f7248e10c4ab1029d2;p=nncp.git 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