From 0f4e6fa4280506953bb214a9d1ff053ba1975482 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 2 Oct 2012 18:02:21 +0000 Subject: [PATCH] Base the installation permissions on the substituted file (not the original) --- doc/scripts/subst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/scripts/subst.sh b/doc/scripts/subst.sh index 5c8c9d6..33fd829 100755 --- a/doc/scripts/subst.sh +++ b/doc/scripts/subst.sh @@ -87,7 +87,7 @@ while [ $# -gt 0 ]; do if [ "$install" -eq 1 ]; then $DEBUG $MKDIR -- "$BINDIR" || exit 2 mode="-m 0644" - [ -x "$target.in" ] && mode="-m 0755" + [ -x "$target" ] && mode="-m 0755" $DEBUG $INSTALL $mode "$target" "$BINDIR/$target" \ || exit 2 continue