Update ansible/dotbot scripts

This commit is contained in:
2018-02-05 20:09:05 +01:00
parent 86b6158ddb
commit d506385ff0
4 changed files with 93 additions and 75 deletions

15
dotbot Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
CONFIG="dotbot.yml"
DOTBOT_DIR="_dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
exit $?