From fb4deb6c196317acb38b632434c6faa5b115be1f Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 24 Jul 2023 16:49:51 +0200 Subject: [PATCH] install.sh: Install executable etc-files correctly Commit 96c17c977992 ("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. --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 669d663..eb53244 100755 --- a/install.sh +++ b/install.sh @@ -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 }