From 27e7c8b8b7dc7d50c0e4cfb16a6b399433bc5324 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 15 Jan 2014 08:36:59 +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 d66b973..b3050ab 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=m_lib/ HEAD | (cd "$HOME/tmp" && exec tar xf -) && -- 2.39.5