summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-16 15:17:58 -0400
committerJoey Hess <joey@kitenet.net>2010-07-16 15:17:58 -0400
commitf5be6c8c780bc16fba9f58372ea4a1d209d05bde (patch)
treeccedafa1c216bb3cdaff7a746e1813e8013d0e7a
parent8a9ce39ad8790b946a7e81151d52b76a85e3923c (diff)
parent65eda73020e0aa6bf15e64106dae955bf17a41dd (diff)
Merge remote branch 'wertarbyte/cmd_vcs'
-rwxr-xr-xvcs.d/30vcs-cmd11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcs.d/30vcs-cmd b/vcs.d/30vcs-cmd
new file mode 100755
index 0000000..074523d
--- /dev/null
+++ b/vcs.d/30vcs-cmd
@@ -0,0 +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 $@
+fi