From bceb0a3ed4c51208b02a81f20521032e5a942649 Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 1 Aug 2026 08:16:00 -0400 Subject: [PATCH] Update 1 file: bootstrap.sh --- default/.config/zsh/bootstrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default/.config/zsh/bootstrap.sh b/default/.config/zsh/bootstrap.sh index 8fb1b9c..5017322 100755 --- a/default/.config/zsh/bootstrap.sh +++ b/default/.config/zsh/bootstrap.sh @@ -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 +} \ No newline at end of file