summaryrefslogtreecommitdiff
path: root/vcs.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-16 15:19:54 -0400
committerJoey Hess <joey@kitenet.net>2010-07-16 15:19:54 -0400
commiteefaf40573d3a967ab1102af16ab579df0c6f305 (patch)
tree75ce140c27829d5e0b1274f47b76a41d2a6c340d /vcs.d
parentfc17370becb9cfc78ac2e572f405149469d03731 (diff)
properly quote $@; remove pointless IFS setting; add error if VCS not found
Diffstat (limited to 'vcs.d')
-rwxr-xr-xvcs.d/50vcs-cmd8
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