diff options
-rw-r--r-- | src/oh-installfiles.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh index 082aae5..3a19928 100644 --- a/src/oh-installfiles.sh +++ b/src/oh-installfiles.sh @@ -44,12 +44,11 @@ main() chmod 755 "${pkg}.data" while IFS="${files_ifs}" read -r pattern; do - find 'dest' -path "${pattern}" | \ - while IFS="${files_ifs}" read -r file; do - file="${file#dest}" - mkdir -p "${pkg}.data/${file%/*}" - ln "${PWD}/dest/${file}" "${pkg}.data/${file}" - done + for file in dest/${pattern}; do + file="${file#dest}" + mkdir -p "${pkg}.data/${file%/*}" + ln "${PWD}/dest/${file}" "${pkg}.data/${file}" + done done <"../${pkg}.pkg/files" done } |