From: Richard Hartmann Date: Mon, 23 Apr 2012 21:56:39 +0000 (+0200) Subject: Make `vcsh list` more resilient X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/7f6ab9a128b7848186a9a36580011a97253f70c8?ds=sidebyside;hp=--cc Make `vcsh list` more resilient Thanks to Mathdesc for catching that one. --- 7f6ab9a128b7848186a9a36580011a97253f70c8 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 }