diff --git a/src/main/bash/eachrepo b/src/main/bash/eachrepo index c9b69e7..ecf31bf 100755 --- a/src/main/bash/eachrepo +++ b/src/main/bash/eachrepo @@ -66,7 +66,7 @@ run_in_dir() { export -f run_in_dir find_git_worktrees() { - find . -depth 1 -type d -not \( -name '.*' -prune \) -execdir test -d {}/.git ';' -prune "$@" + find -L . -depth 1 -type d -not \( -name '.*' -prune \) -execdir test -d {}/.git ';' -prune "$@" } if [ "${parallel}" = "true" ] && which -s parallel; then diff --git a/src/main/bash/push b/src/main/bash/push index c1127a5..c256298 100755 --- a/src/main/bash/push +++ b/src/main/bash/push @@ -181,7 +181,7 @@ for commit in "${to_push[@]}"; do status "Building using:$(printf ' %q' "${build_command[@]}")" "${build_command[@]}" - if [ "${clean_shadow}" = true ] && [ -n "$(set +u && git ls-files --modified --others --exclude-standard "${link_exclusions[@]}")" ]; then + if [ -n "$(set +u && git ls-files --modified --others --exclude-standard "${link_exclusions[@]}")" ]; then fail "Unstaged changes after a successful build run! $(git status)" fi