Setting umask before mkdir broke directories permission.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 31 Jan 2013 19:51:54 +0200
changeset 611 54de7fabecd7
parent 610 3db3d6236d9c
child 613 7868e3a07592
child 614 3e5939c04130
Setting umask before mkdir broke directories permission.
Makefile
--- a/Makefile	Sun Jan 13 16:26:41 2013 +0200
+++ b/Makefile	Thu Jan 31 19:51:54 2013 +0200
@@ -118,9 +118,9 @@
 	vmajor=$${v%%.*}; \
 	vminor=$${v#*.}; \
 	vminor=$${vminor%.*}; \
-	umask 0117; \
 	if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \
 		mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \
+		umask 0117; \
 		install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \
 		cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \
 		{ \