summaryrefslogtreecommitdiff
path: root/init.d/70vcs-add
blob: 8cf60d0a48718e2686decf979992ad32cce02912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ "$VCS" = git ]; then
	if ! git add .; then
		echo "etckeeper warning: git add failed" >&2
	fi
elif [ "$VCS" = hg ]; then
	if ! hg add .; then
		echo "etckeeper warning: hg add failed" >&2
	fi
fi