X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/5e352846b9d840bf9370f7b5ea9052c82b07f2c6..c05b582232936e006b88595b36aa8318a53b2f7e:/vcsh diff --git a/vcsh b/vcsh index 0a9e52d..238e4c88 100755 --- a/vcsh +++ b/vcsh @@ -1,5 +1,11 @@ #!/bin/sh +# This program is licensed under the GNU GPL version 2 or later. +# (c) Richard "RichiH" Hartmann, 2011 +# For details, see LICENSE. To submit patches, you have to agree to +# license your code under the GNU GPL version 2 or later. + + [ -n "$VCSH_DEBUG" ] && set -vx [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" [ -z "$VCSH_BASE" ] && VCSH_BASE="$XDG_CONFIG_HOME/vcsh/repo.d" @@ -211,7 +217,7 @@ elif [ "$1" = 'delete' ] || elif [ "$1" = 'list' ] || [ "$1" = 'list-tracked' ]; then export VCSH_COMMAND="$1" -elif [ -n "$1" -a -n "$2" ]; then +elif [ -n "$2" ]; then export VCSH_COMMAND='run' export VCSH_REPO_NAME="$1" export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"