From a9717f7c70f81962316fcb215825e54d0a658269 Mon Sep 17 00:00:00 2001 From: Parker TenBroeck <51721964+ParkerTenBroeck@users.noreply.github.com> Date: Wed, 7 Jan 2026 14:15:46 -0500 Subject: [PATCH] fixed issue in deploy script --- web/deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/deploy.sh b/web/deploy.sh index 9bcefd6..99d736a 100755 --- a/web/deploy.sh +++ b/web/deploy.sh @@ -10,10 +10,11 @@ ROOT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)" || { exit 1 } -cd "$ROOT_DIR" +cd "$ROOT_DIR/web" ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)" + cleanup() { # Always try to return to the original branch git switch -q "$ORIG_BRANCH" 2>/dev/null || true