install: fix read for /bin/dash

/bin/dash does not implement the -d option for read. Using newlines as
separator for the files within a package is fine, as I am quite sure
there is no risk of having a newline character as part of the name in
any of my dotfiles.
This commit is contained in:
Fernando Schauenburg 2021-11-22 08:51:27 +01:00
parent d3dd28cc1f
commit 7b8116185c

View file

@ -167,7 +167,7 @@ relative_path() {
} }
deploy() { deploy() {
find "$1" -type f -print0 | while read -d $'\0' src; do find "$1" -type f | while read src; do
src_dir="$(dirname "$src")" src_dir="$(dirname "$src")"
dest_dir="$HOME${src_dir##"$1"}" dest_dir="$HOME${src_dir##"$1"}"
ensure_directory "$dest_dir" ensure_directory "$dest_dir"