Update only target directories which have .git directories

Or files, technically
This commit is contained in:
Adam Goldsmith 2023-04-15 21:50:16 -04:00
parent 51362d8c81
commit 9d2d5f568e
1 changed files with 5 additions and 3 deletions

8
dup
View File

@ -67,7 +67,7 @@ function run_script() {
do
if [ -e "$target/$script" ]
then
$quiet || echo "Running $target$script"
[[ "$quiet" == true ]] || echo "Running $target/$script"
"$target/$script" ${quiet:+-q}
fi
done
@ -144,10 +144,12 @@ elif [ "$bootstrap" != true ]
then
do_pull_maybe_quiet .dotfiles .
for dir in */
targets="$(find * -maxdepth 0 -type d -execdir test -e "{}/.git" \; -print)"
for dir in $targets
do
do_pull_maybe_quiet "$dir"
done
maybe_stow "*/"
maybe_stow $targets
fi