From 7f6ab9a128b7848186a9a36580011a97253f70c8 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Mon, 23 Apr 2012 23:56:39 +0200 Subject: [PATCH 1/1] Make `vcsh list` more resilient Thanks to Mathdesc for catching that one. --- vcsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcsh b/vcsh index 3937d2b..c6ea395 100755 --- a/vcsh +++ b/vcsh @@ -133,8 +133,8 @@ init() { } list() { - for i in "$VCSH_REPO_D"/*.git; do - echo $(basename "$i" .git) + for repo in "$VCSH_REPO_D"/*.git; do + [ -r "$repo" ] && echo $(basename "$repo" .git) done } -- 2.39.5