From: W. Trevor King Date: Wed, 14 Mar 2012 19:51:28 +0000 (-0400) Subject: Files can not be repositories during run_on_all_repos(). X-Git-Tag: v0.3~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=193ed92127b56c8536ee269c47657c20e38f54ff;p=dotfiles-framework.git Files can not be repositories during run_on_all_repos(). --- diff --git a/dotfiles.sh b/dotfiles.sh index eb19aa0..d838e60 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -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