From d15d05a5d3ea5c09c663cc8b61e2c69bf54bbc53 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sat, 26 Nov 2011 11:39:32 +0100 Subject: [PATCH 1/1] Use explicit variable names and improve quoting --- vcsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcsh b/vcsh index a6d0106..029c42c 100755 --- a/vcsh +++ b/vcsh @@ -179,8 +179,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 -- 2.39.5