Update only target directories which have .git directories
Or files, technically
This commit is contained in:
parent
51362d8c81
commit
9d2d5f568e
8
dup
8
dup
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user