-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·24 lines (18 loc) · 791 Bytes
/
install
File metadata and controls
executable file
·24 lines (18 loc) · 791 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
#!/usr/bin/env bash
set -euo pipefail
CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}" || exit 1
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "$@"
# Verify critical tools are available
echo ""
echo "Verifying critical tools..."
command -v git &>/dev/null || { echo "ERROR: git not found"; exit 1; }
command -v zsh &>/dev/null || { echo "ERROR: zsh not found"; exit 1; }
command -v nvim &>/dev/null || { echo "ERROR: nvim not found"; exit 1; }
command -v brew &>/dev/null || { echo "ERROR: brew not found"; exit 1; }
echo "✅ Installation complete!"