From eaafe75591b135cd256e4c77e21be199131407d5 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih.mailinglist@gmail.com>
Date: Fri, 29 Jun 2012 11:37:07 +0200
Subject: [PATCH] Make `vcsh list` even more resilient ;)

---
 vcsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vcsh b/vcsh
index ce8d385..358135a 100755
--- a/vcsh
+++ b/vcsh
@@ -139,7 +139,7 @@ init() {
 
 list() {
 	for repo in "$VCSH_REPO_D"/*.git; do
-		[ -r "$repo" ] && echo $(basename "$repo" .git)
+		[ -d "$repo" ] && [ -r "$repo" ] && echo $(basename "$repo" .git)
 	done
 }
 
-- 
GitLab