From 193ed92127b56c8536ee269c47657c20e38f54ff Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 14 Mar 2012 15:51:28 -0400 Subject: [PATCH] Files can not be repositories during run_on_all_repos(). --- dotfiles.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2