mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
Merge of 23702: use chmod to change permissions since installing as a programme may try to strip the script.
This commit is contained in:
parent
d7ba463048
commit
df953dba22
1 changed files with 2 additions and 3 deletions
|
@ -34,10 +34,9 @@ for file in $allfuncs; do
|
|||
instdir="$fndir"
|
||||
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
|
||||
$INSTALL_PROGRAM $sdir_top/$file $instdir || exit 1
|
||||
else
|
||||
$INSTALL_DATA $sdir_top/$file $instdir || exit 1
|
||||
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue