From eefaf40573d3a967ab1102af16ab579df0c6f305 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 16 Jul 2010 15:19:54 -0400 Subject: properly quote $@; remove pointless IFS setting; add error if VCS not found --- vcs.d/50vcs-cmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcs.d') 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 -- cgit v1.2.3