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

index f6adfca6600368af07ac9a6ce823ab821f9b14b3..ce01503798e6e35286c40605976cc7458977de1e 100755 (executable)
--- a/mk-distr
+++ b/mk-distr
@@ -4,11 +4,15 @@
 # This file is a part of Bookmarks database and Internet robot.
 #
 # __author__ = "Oleg Broytman <phd@phdru.name>"
-# __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 |