Initial commit.
This commit is contained in:
11
etckeeper/vcs.d/50vcs-cmd
Executable file
11
etckeeper/vcs.d/50vcs-cmd
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user