Files can not be repositories during run_on_all_repos().
authorW. Trevor King <wking@drexel.edu>
Wed, 14 Mar 2012 19:51:28 +0000 (15:51 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 14 Mar 2012 19:51:28 +0000 (15:51 -0400)
dotfiles.sh

index eb19aa058038856eae96a385cc7851858e57b054..d838e60a38df79987ac4d1040f866c474073d43b 100755 (executable)
@@ -94,6 +94,8 @@ function run_on_all_repos()
                for REPO in *; do
                        if [ "${REPO}" = '*' ]; then
                                break  # no known repositories
+                       elif [ -f "${REPO}" ]; then
+                               continue  # repositories are directories
                        fi
                        "${COMMAND}" "${@}" "${REPO}" || return 1
                done