Files
zira-etc/etckeeper/vcs.d/50vcs-cmd
2021-05-24 22:18:33 +03:00

12 lines
253 B
Bash
Executable File

#!/bin/sh
set -e
# check whether we can locate the vcs binary
if [ -n "$VCS" ] && command -v "$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