]> git.phdru.name Git - mimedecode.git/commitdiff
Switch branch before setting umask
authorOleg Broytman <phd@phdru.name>
Wed, 15 Jan 2014 04:37:53 +0000 (08:37 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 15 Jan 2014 04:37:53 +0000 (08:37 +0400)
mk-distr

index 79e9e1ff9c85a41b0bae4d6125385c1e7b9eb268..201ad4b3f32f7745eec749b97cb39df933fea106 100755 (executable)
--- a/mk-distr
+++ b/mk-distr
@@ -1,11 +1,11 @@
 #! /bin/sh
 
-umask 022
-
 if [ -n "$1" ]; then
    git checkout "$1"
 fi &&
 
+umask 022 &&
+
 git archive --format=tar --prefix=mimedecode/ HEAD |
    (cd "$HOME/tmp" && exec tar xf -) &&
 cp -p mimedecode.man mimedecode.html mimedecode.txt "$HOME/tmp/mimedecode" &&