diff --git a/dup b/dup index 1bed008..256bd37 100755 --- a/dup +++ b/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