2018-05-28 03:31:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-06-05 15:50:41 -04:00
|
|
|
#set -e
|
2018-05-28 03:31:03 -04:00
|
|
|
|
|
|
|
CONFIG="install.conf.yaml"
|
|
|
|
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}" "${@}"
|
2018-06-05 14:05:39 -04:00
|
|
|
|
|
|
|
# Run local dotbot if any
|
|
|
|
if [[ -r "${HOME}/.local/dotfiles/local.conf.yaml" ]]; then
|
2018-06-05 15:50:41 -04:00
|
|
|
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${HOME}/.local/dotfiles" -c "${HOME}/.local/dotfiles/local.conf.yaml" "${@}"
|
2018-06-05 14:05:39 -04:00
|
|
|
fi
|
|
|
|
|