File: 50vcs-cmd

package info (click to toggle)
etckeeper 0.48
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 380 kB
  • ctags: 32
  • sloc: sh: 916; makefile: 44; python: 41
file content (11 lines) | stat: -rwxr-xr-x 248 bytes parent folder | download | duplicates (5)
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