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:
parent
d3dd28cc1f
commit
7b8116185c
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue