diff --git a/vcsh b/vcsh
index ce8d385d4fe0a0b550797adfecc43a40e6af64bb..358135a48ed814b63218d0fef0b6a68023afae0e 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
}