fixed issue in deploy script

This commit is contained in:
Parker TenBroeck 2026-01-07 14:15:46 -05:00
parent 3d656d45de
commit a9717f7c70

View file

@ -10,10 +10,11 @@ ROOT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)" || {
exit 1 exit 1
} }
cd "$ROOT_DIR" cd "$ROOT_DIR/web"
ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)" ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
cleanup() { cleanup() {
# Always try to return to the original branch # Always try to return to the original branch
git switch -q "$ORIG_BRANCH" 2>/dev/null || true git switch -q "$ORIG_BRANCH" 2>/dev/null || true