From a7bd19bd52d2589954b8406c7da8ef2f3677b547 Mon Sep 17 00:00:00 2001 From: Gustavo Cordova Avila Date: Fri, 1 Apr 2022 15:46:49 -0700 Subject: [PATCH] Fix condiiton to not run command in missing directory --- bundle/bundles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/bundles.sh b/bundle/bundles.sh index c264884..f856b2a 100755 --- a/bundle/bundles.sh +++ b/bundle/bundles.sh @@ -25,7 +25,7 @@ repos() { # Eval "$1" for all directories local dn for dn in * ; do - [[ -d "$dn" ]] || continue + [[ -d "$dn" && -d "$dn/.git" ]] || continue eval "${1//@@/$dn}" | colors done }