forked from acasajus/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-standalone
executable file
·28 lines (18 loc) · 965 Bytes
/
install-standalone
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
BASE_CONFIG="defaults"
CONFIG_SUFFIX=".yaml"
META_DIR="deploy"
CONFIG_DIR="configs"
PROFILES_DIR="profiles"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
DOTBOT_PLUGIN_DIR="dotbot"
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASE_DIR}"
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git submodule update --init --recursive "${META_DIR}/${DOTBOT_DIR}"
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git submodule update --init --recursive "${META_DIR}/dotbot-brew"
"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" --plugin-dir ${BASE_DIR}/${META_DIR}/dotbot-brew -c "${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}"
for config in ${@}; do
"${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" --plugin-dir ${BASE_DIR}/${META_DIR}/dotbot-brew -c "${META_DIR}/${CONFIG_DIR}/${config}${CONFIG_SUFFIX}"
done