From 69903a8fcef8dc34e67b1d18ccd84ec133d82546 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 15 Jan 2014 08:37:53 +0400 Subject: [PATCH] Switch branch before setting umask --- mk-distr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" && -- 2.39.5