Update 1 file: bootstrap.sh

This commit is contained in:
2026-08-01 08:16:00 -04:00
parent 2e56e3bf31
commit bceb0a3ed4
+5 -1
View File
@@ -25,6 +25,7 @@ check_all() {
done
if [[ ${#missing[@]} -eq 0 ]]; then
info "all tools present" >&2
update
exit 0
fi
echo "${missing[@]}"
@@ -149,6 +150,7 @@ else
git clone --depth=1 "$REPO_URL" "$TARGET_DIR"
fi
update() {
dotstate activate
sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/config.toml || echo 'repo_mode = "Local"' >> ~/.config/dotstate/config.toml
@@ -156,6 +158,8 @@ sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/con
dotstate doctor --fix
dotstate activate
exec zsh
info "done"
exec zsh
}