From: Richard Hartmann Date: Fri, 29 Jun 2012 09:37:07 +0000 (+0200) Subject: Make `vcsh list` even more resilient ;) X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/eaafe75591b135cd256e4c77e21be199131407d5?ds=sidebyside;hp=--cc Make `vcsh list` even more resilient ;) --- eaafe75591b135cd256e4c77e21be199131407d5 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 }