summaryrefslogtreecommitdiff
path: root/vcs.d/50vcs-cmd
blob: f515abbe1d8bcd586ab552d44f1493948618a057 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e

# check whether we can locate the vcs binary
if [ -n "$VCS" ] && which "$VCS" > /dev/null; then
        # pass commands to the VCS application
        $VCS "$@"
else
	echo "error: VCS ($VCS) not set or not in PATH" >&2
	exit 1
fi