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