-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·34 lines (24 loc) · 940 Bytes
/
install.sh
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
29
30
31
32
33
#!/usr/bin/env bash
set -e
META_DIR="meta"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
APT_GET_PLUGIN="${BASE_DIR}/${META_DIR}/dotbot_plugins/dotbot_plugin_aptget/aptget.py"
SUDO_PLUGIN="${BASE_DIR}/${META_DIR}/dotbot_plugins/dotbot-sudo/sudo.py"
RUST_PLUGIN="${BASE_DIR}/${META_DIR}/dotbot_plugins/dotbot-rust/rust.py"
INCLUDE_PLUGIN="${BASE_DIR}/${META_DIR}/dotbot_plugins/dotbot-include/include.py"
CONDITIONAL_PLUGIN="${BASE_DIR}/${META_DIR}/dotbot_plugins/dotbot-conditional/conditional.py"
cd "${BASE_DIR}"
for config in ${@}; do
cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
-d "${BASE_DIR}" \
-p "${APT_GET_PLUGIN}" \
-p "${SUDO_PLUGIN}" \
-p "${RUST_PLUGIN}" \
-p "${INCLUDE_PLUGIN}" \
-p "${CONDITIONAL_PLUGIN}" \
-c "$config")
"${cmd[@]}"
done
echo "Restart your terminal..."