From da7f3d5b67572af350ed3372766c77824dd9c0aa Mon Sep 17 00:00:00 2001 From: "W. Dana Nuon" Date: Wed, 19 Aug 2020 15:15:42 -0400 Subject: [PATCH] Correctly handle spaces in file paths. --- script/bootstrap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/bootstrap b/script/bootstrap index ec33297de17..96ebe37307c 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -130,6 +130,9 @@ install_dotfiles () { local overwrite_all=false backup_all=false skip_all=false +# If code is added later that relies on the current value of IFS, be sure to save it +# and then restore it after this loop. + local IFS=$'\n' for src in $(find -H "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink' -not -path '*.git*') do dst="$HOME/.$(basename "${src%.*}")"