diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-16 15:19:54 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-16 15:19:54 -0400 |
commit | eefaf40573d3a967ab1102af16ab579df0c6f305 (patch) | |
tree | 75ce140c27829d5e0b1274f47b76a41d2a6c340d /vcs.d/50vcs-cmd | |
parent | fc17370becb9cfc78ac2e572f405149469d03731 (diff) |
properly quote $@; remove pointless IFS setting; add error if VCS not found
Diffstat (limited to 'vcs.d/50vcs-cmd')
-rwxr-xr-x | vcs.d/50vcs-cmd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcs.d/50vcs-cmd b/vcs.d/50vcs-cmd index 074523d..f515abb 100755 --- a/vcs.d/50vcs-cmd +++ b/vcs.d/50vcs-cmd @@ -1,11 +1,11 @@ #!/bin/sh set -e -IFS=' -' - # check whether we can locate the vcs binary if [ -n "$VCS" ] && which "$VCS" > /dev/null; then # pass commands to the VCS application - $VCS $@ + $VCS "$@" +else + echo "error: VCS ($VCS) not set or not in PATH" >&2 + exit 1 fi |