X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/189cb6bd1558c7cb4aabd9fa05624e44ce0afa3d..5fa85a684462df45aac4003f8a5f5375b7b1b5de:/vcsh?ds=inline diff --git a/vcsh b/vcsh index ba0049e..c6ea395 100755 --- a/vcsh +++ b/vcsh @@ -22,9 +22,9 @@ help() { clone \\ [] Clone from an existing repository - help Display this help text delete Delete an existing repository enter Enter repository; spawn new instance of \$SHELL + help Display this help text init Initialize a new repository list List all repositories list-tracked List all files tracked by 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 }