X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/2f7b006ff5df72cff63f8d7cb40d8c68cac07196..68c93dceb42ee275b339d421bbf77eaf62363d31:/vcsh?ds=inline diff --git a/vcsh b/vcsh index a6d0106..cfcb42a 100755 --- a/vcsh +++ b/vcsh @@ -96,7 +96,6 @@ init() { export GIT_WORK_TREE="$HOME" mkdir -p "$GIT_WORK_TREE" cd "$GIT_WORK_TREE" || fatal "could not enter '$GIT_WORK_TREE'" 11 - cd "$GIT_WORK_TREE" git init setup } @@ -179,8 +178,8 @@ elif [ "$1" = 'delete' ] || export VCSH_COMMAND="$1" export VCSH_REPO_NAME="$2" export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" - [ "$1" = 'run' ] && shift 2 && export VCSH_EXTERNAL_COMMAND="$@" - [ "$1" = 'seed-gitignore' ] && export VCSH_COMMAND=seed_gitignore + [ "$VCSH_COMMAND" = 'run' ] && shift 2 && export VCSH_EXTERNAL_COMMAND="$@" + [ "$VCSH_COMMAND" = 'seed-gitignore' ] && export VCSH_COMMAND='seed_gitignore' elif [ "$1" = 'list' ]; then export VCSH_COMMAND="$1" elif [ -n "$1" ]; then