From: Richard Hartmann Date: Sat, 26 Nov 2011 10:39:32 +0000 (+0100) Subject: Use explicit variable names and improve quoting X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/d15d05a5d3ea5c09c663cc8b61e2c69bf54bbc53?ds=sidebyside;hp=--cc Use explicit variable names and improve quoting --- d15d05a5d3ea5c09c663cc8b61e2c69bf54bbc53 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