From 7b8116185c363cd23d16a99f8dbb767369aed375 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 22 Nov 2021 08:51:27 +0100 Subject: [PATCH] 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. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fb1991a..2d553de 100755 --- a/install.sh +++ b/install.sh @@ -167,7 +167,7 @@ relative_path() { } deploy() { - find "$1" -type f -print0 | while read -d $'\0' src; do + find "$1" -type f | while read src; do src_dir="$(dirname "$src")" dest_dir="$HOME${src_dir##"$1"}" ensure_directory "$dest_dir"