about summary refs log tree commit diff
path: root/Config/installfns.sh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-01-31 19:48:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-01-31 19:48:42 +0000
commit1caf52f39605d2f80af41d73440b78a701f58dcc (patch)
treefc5fd7c59b3bd04b886425514eca47152a4634fe /Config/installfns.sh
parent0d8a58095196ece20dadd4894c4ddf8ddf440cdf (diff)
downloadzsh-1caf52f39605d2f80af41d73440b78a701f58dcc.tar.gz
zsh-1caf52f39605d2f80af41d73440b78a701f58dcc.tar.xz
zsh-1caf52f39605d2f80af41d73440b78a701f58dcc.zip
Mikael: 27642: missing glob qualifier completion
Diffstat (limited to 'Config/installfns.sh')
-rwxr-xr-xConfig/installfns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Config/installfns.sh b/Config/installfns.sh
index c28c8e7df..677a8fbfe 100755
--- a/Config/installfns.sh
+++ b/Config/installfns.sh
@@ -46,7 +46,7 @@ for file in $allfuncs; do
     fi
     test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1
     $INSTALL_DATA $sdir_top/$file $instdir || exit 1
-    if test -x $sdir_top/$file; then
+    if sed -ne '1p' $sdir_top/$file | grep '^#!' >/dev/null; then
 	chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
     fi
   fi