Permalink
Browse files

properly quote $@; remove pointless IFS setting; add error if VCS not…

… found
  • Loading branch information...
1 parent fc17370 commit eefaf40573d3a967ab1102af16ab579df0c6f305 @joeyh joeyh committed Jul 16, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 vcs.d/50vcs-cmd
View
@@ -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

0 comments on commit eefaf40

Please sign in to comment.