From 0828fa7ac71fec52aa18bb39d5a0b54cb7c75b0d Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 8 Dec 2025 16:31:25 +0100 Subject: [PATCH] fix: prevent silent exit when registration_token is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The [[ -n "$json_token" ]] && ... pattern returns exit code 1 when json_token is empty, causing script to exit due to set -e. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- script/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/start.sh b/script/start.sh index 7192457..5b58556 100644 --- a/script/start.sh +++ b/script/start.sh @@ -142,7 +142,7 @@ parse_json() { # Registration token (can also be set via environment variable) local json_token=$(echo "$json" | jq -r '.registration_token // empty') - [[ -n "$json_token" ]] && SYSADMIN_REGISTRATION_TOKEN="$json_token" + [[ -n "$json_token" ]] && SYSADMIN_REGISTRATION_TOKEN="$json_token" || true } # =============================================================================