-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·33 lines (27 loc) · 766 Bytes
/
install
File metadata and controls
executable file
·33 lines (27 loc) · 766 Bytes
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
CONFIGS=(
"dotbot-configs/management.yaml"
"dotbot-configs/software.yaml"
"dotbot-configs/desktop.yaml"
"dotbot-configs/niri.yaml"
"dotbot-configs/themes.yaml"
)
DEFAULTS="defaults.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$BASEDIR"
git submodule sync --quiet --recursive
git submodule update --init --recursive
for CONFIG in "${CONFIGS[@]}"; do
echo "Executing config $CONFIG..."
TEMPFILE=$(mktemp)
cat "$DEFAULTS" > "$TEMPFILE"
tail -n +2 "$CONFIG" >> "$TEMPFILE"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
-d "$BASEDIR" \
-c "$TEMPFILE" \
"${@}" || continue
done
echo "Finished executing configs."