diff --git a/install.sh b/install.sh index eb53244..fca5387 100755 --- a/install.sh +++ b/install.sh @@ -103,13 +103,13 @@ function install_symlink() function install_etc_files() { - (cd etc ; find * -type f) | while read -r path; do + while read -r path; do if [[ -x etc/$path ]]; then install_exec etc/$path "$DESTDIR$sysconfdir/$path" else install_data etc/$path "$DESTDIR$sysconfdir/$path" fi - done + done < <(cd etc ; find * -type f) } function postinstall()