2016-09-26 15:40:04 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-04-14 17:00:41 +02:00
|
|
|
CONFIG=".install.conf.yaml"
|
|
|
|
DOTBOT_DIR=".dotbot"
|
2016-09-26 15:40:04 +02:00
|
|
|
|
|
|
|
DOTBOT_BIN="bin/dotbot"
|
|
|
|
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
|
|
|
|
cd "${BASEDIR}"
|
2020-04-14 17:00:41 +02:00
|
|
|
git pull || echo "Pulling from remote failed"
|
2016-09-26 15:40:04 +02:00
|
|
|
git submodule update --init --recursive "${DOTBOT_DIR}"
|
|
|
|
|
|
|
|
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
2021-11-25 15:14:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Make sure ssh/config is only read/writable for owner
|
|
|
|
chmod 600 ssh/config
|