Move dotbot related stuff into meta/

This commit is contained in:
2020-08-25 13:15:06 +02:00
parent 97bc45ea0e
commit 3c65e1a552
4 changed files with 6 additions and 5 deletions

18
meta/install Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
cd "$(dirname "${BASH_SOURCE[0]}")"
INSTALL_DIR="$(pwd)"
BASEDIR="$(git rev-parse --show-toplevel)"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
"${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
! command -v zsh >/dev/null 2>&1 || exec zsh