Skip to content

Commit

Permalink
install.sh: Install executable etc-files correctly
Browse files Browse the repository at this point in the history
Commit 96c17c9 ("install.sh: Install files from etc/ implicitly")
missed the fact, that etc/mxq/gpu-policy is an executable script and
should be install with +x.

So check, whether the source file is executable and if so, then install
it as executable.
  • Loading branch information
donald committed Jul 24, 2023
1 parent 00db4d4 commit fb4deb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ function install_symlink()
function install_etc_files()
{
(cd etc ; find * -type f) | while read -r path; do
install_data etc/$path "$DESTDIR$sysconfdir/$path"
if [[ -x etc/$path ]]; then
install_exec etc/$path "$DESTDIR$sysconfdir/$path"
else
install_data etc/$path "$DESTDIR$sysconfdir/$path"
fi
done
}

Expand Down

0 comments on commit fb4deb6

Please sign in to comment.