summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-07-29 21:51:08 +0200
committerErich Eckner <git@eckner.net>2021-07-29 21:51:08 +0200
commitfe598d432cf8bc1a1ed1f62f8bd95739f3dd4f27 (patch)
treeeea1462a5b02f8b9a778c26b357f30b9960413e7
parenta7e16d9aefade0ba5e9673def55781e748b30655 (diff)
downloadgitolite-sync-fe598d432cf8bc1a1ed1f62f8bd95739f3dd4f27.tar.xz
fix Makefile for posix sh
-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" && \