From 69846ebc38f6e7d427a48378c12dd6eb6b8807c5 Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 1 Aug 2026 15:21:33 -0400 Subject: [PATCH] Update 2 files: bootstrap.sh, functions.zsh --- bootstrap.sh | 2 +- default/.config/zsh/functions.zsh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index fb0a94f..1bcf1ca 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -143,7 +143,7 @@ update_repo() { if [[ -d "$TARGET_DIR/.git" ]]; then local remote_sha local_sha - remote_sha=$(git ls-remote origin HEAD | awk '{print $1}') + remote_sha=$(git ls-remote "$REPO_URL" HEAD | awk '{print $1}') local_sha=$(git -C "$TARGET_DIR" rev-parse HEAD) if [[ "$remote_sha" == "$local_sha" ]]; then info "Repository up to date" diff --git a/default/.config/zsh/functions.zsh b/default/.config/zsh/functions.zsh index ac27868..323314a 100644 --- a/default/.config/zsh/functions.zsh +++ b/default/.config/zsh/functions.zsh @@ -11,13 +11,13 @@ install_opencode(){ curl -fsSL https://opencode.ai/install | bash } -update_repo() { +dotstate_update() { local REPO_URL="https://git.jeremymcclure.com/jeremy/dotstate-storage.git" local TARGET_DIR="$HOME/.config/dotstate/storage" if [[ -d "$TARGET_DIR/.git" ]]; then local remote_sha local_sha - remote_sha=$(git ls-remote origin HEAD | awk '{print $1}') + remote_sha=$(git ls-remote "$REPO_URL" HEAD | awk '{print $1}') local_sha=$(git -C "$TARGET_DIR" rev-parse HEAD) if [[ "$remote_sha" == "$local_sha" ]]; then info "Repository up to date" @@ -29,4 +29,6 @@ update_repo() { info "Repository not found. Cloning..." git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null fi + dotstate activate + exec zsh } \ No newline at end of file