You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
447 B
Bash
18 lines
447 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
not_enabled_warning() {
|
|
echo "etckeeper warning: etckeeper is not yet enabled for $(pwd)" >&2
|
|
echo "etckeeper warning: run etckeeper init to enable it" >&2
|
|
}
|
|
|
|
if [ "$VCS" = git ] && [ ! -d .git ]; then
|
|
not_enabled_warning
|
|
elif [ "$VCS" = hg ] && [ ! -d .hg ]; then
|
|
not_enabled_warning
|
|
elif [ "$VCS" = bzr ] && [ ! -d .bzr ]; then
|
|
not_enabled_warning
|
|
elif [ "$VCS" = darcs ] && [ ! -d _darcs ]; then
|
|
not_enabled_warning
|
|
fi
|