From 62ae259df520995c8bbb89210cabec8ce6021c36 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 15 Jan 2014 08:36:04 +0400 Subject: [PATCH] Switch branch before setting umask --- mk-distr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mk-distr b/mk-distr index f6adfca..ce01503 100755 --- a/mk-distr +++ b/mk-distr @@ -4,11 +4,15 @@ # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design" +# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" # __license__ = "GNU GPL" -umask 022 +if [ -n "$1" ]; then + git checkout "$1" +fi && + +umask 022 && prog_dir="`pwd`" && git archive --format=tar --prefix=bookmarks_db/ HEAD | -- 2.39.5