Fix find command

This commit is contained in:
David Tomaschik
2021-11-07 20:57:19 -08:00
parent 37d606cc49
commit d213b3b234

View File

@@ -56,12 +56,13 @@ install_dotfile_dir() {
while read -r submod ; do while read -r submod ; do
echo -n " -o -path ${BASEDIR}/${submod}" echo -n " -o -path ${BASEDIR}/${submod}"
done)" done)"
# shellcheck disable=SC2086
find "${SRCDIR}" \( -name .git -o \ find "${SRCDIR}" \( -name .git -o \
-path "${SRCDIR}/private_dotfiles" -o \ -path "${SRCDIR}/private_dotfiles" -o \
-name install.sh -o \ -name install.sh -o \
-name README.md -o \ -name README.md -o \
-name .gitignore \ -name .gitignore \
"${submodule_prune}" \) \ ${submodule_prune} \) \
-prune -o ${FINDTYPE} f -print | \ -prune -o ${FINDTYPE} f -print | \
while read -r dotfile ; do while read -r dotfile ; do
local TARGET="${HOME}/.${dotfile#${SRCDIR}/}" local TARGET="${HOME}/.${dotfile#${SRCDIR}/}"