summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ce8b6be..77a9447 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ all: man.commons \
s@#GITUSER#@$(GITUSER)@; \
s@#HELPTEXT#\(\s\+\)#@ --help \1display this help and exit\n --version\1display version and exit@; \
" $< > $@ && \
- ( [[ "$@" = *.* ]] || chmod +x "$@" )
+ [ "$@" = 'gitolite-sync' ] && chmod +x "$@" || true
%.1: % man.commons
grep -v "^$<(" man.commons | sed '/^\[SEE ALSO]$$/{n;:a;N;/\[/b;s/\n/, /;ta;}' > "$<.common" && \