X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/d43e125cb172eb4b8c5c04480ad7b686e82638a5..47558cb545fbf6e175c75fe04741ffd78754f222:/vcsh diff --git a/vcsh b/vcsh index 3937d2b..ce8d385 100755 --- a/vcsh +++ b/vcsh @@ -5,6 +5,11 @@ # For details, see LICENSE. To submit patches, you have to agree to # license your code under the GNU GPL version 2 or later. +# While the following is not legally binding, the author would like to +# explain the choice of GPLv2+ over GPLv3+. +# The author prefers GPLv3+ over GPLv2+ but feels it's better to maintain +# full compability with git. In case git ever changes its licensing terms, +# this software will most likely follow suit. [ -n "$VCSH_DEBUG" ] && set -vx [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" @@ -133,8 +138,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 }