]> Cypherpunks.ru repositories - nncp.git/blobdiff - doc/git-bundler.sh
Merge branch 'develop'
[nncp.git] / doc / git-bundler.sh
index 70df7710a6ef3deae9ff2d853aedc99d9ae1aa48..bd7dd15922303823b3a2d4328eed02583152cd27 100755 (executable)
@@ -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