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