Files
etc-mypi/etckeeper/vcs.d/50vcs-cmd
2021-03-18 15:42:28 +00:00

12 lines
248 B
Bash
Executable File

#!/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