summaryrefslogtreecommitdiff
path: root/init.d/70vcs-add
blob: e6ab3d11d3502b1bb4b4df6b6c2aded695fc81e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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
elif [ "$VCS" = bzr ]; then
	if ! bzr add .; then
		echo "etckeeper warning: bzr add failed" >&2
	fi
fi