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

8
dup
View File

@ -67,7 +67,7 @@ function run_script() {
do do
if [ -e "$target/$script" ] if [ -e "$target/$script" ]
then then
$quiet || echo "Running $target$script" [[ "$quiet" == true ]] || echo "Running $target/$script"
"$target/$script" ${quiet:+-q} "$target/$script" ${quiet:+-q}
fi fi
done done
@ -144,10 +144,12 @@ elif [ "$bootstrap" != true ]
then then
do_pull_maybe_quiet .dotfiles . 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
do_pull_maybe_quiet "$dir" do_pull_maybe_quiet "$dir"
done done
maybe_stow "*/" maybe_stow $targets
fi fi