From: Oleg Broytman Date: Wed, 15 Jan 2014 04:37:53 +0000 (+0400) Subject: Switch branch before setting umask X-Git-Tag: v2.3.2~35 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=69903a8fcef8dc34e67b1d18ccd84ec133d82546;p=mimedecode.git Switch branch before setting umask --- diff --git a/mk-distr b/mk-distr index 79e9e1f..201ad4b 100755 --- 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" &&