diff options
-rwxr-xr-x | etckeeper | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -16,22 +16,6 @@ if [ -e $conf ]; then . $conf fi -if [ -d ".git" ]; then - VCS=git -elif [ -d ".hg" ]; then - VCS=hg -elif [ -d "_darcs" ]; then - VCS=darcs -elif [ -d ".bzr" ]; then - VCS=bzr -fi - -if [ -z "$VCS" ]; then - echo "Please configure a VCS in $conf" >&2 - exit 1 -fi -export VCS - unset GIT_WORK_TREE unset GIT_DIR @@ -107,6 +91,22 @@ fi cd "$ETCKEEPER_DIR" export ETCKEEPER_DIR +if [ -d ".git" ]; then + VCS=git +elif [ -d ".hg" ]; then + VCS=hg +elif [ -d "_darcs" ]; then + VCS=darcs +elif [ -d ".bzr" ]; then + VCS=bzr +fi + +if [ -z "$VCS" ]; then + echo "Please configure a VCS in $conf" >&2 + exit 1 +fi +export VCS + lsscripts() { perl -e ' $dir=shift; |