From 82ea3f24f1efed15902577c1c137a127285a93eb Mon Sep 17 00:00:00 2001 From: Cyra Date: Sun, 29 Mar 2026 19:30:46 -0700 Subject: [PATCH] fix(forgejo-runner): also require forgejo instance URL in unattended mode --- ct/forgejo-runner.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ct/forgejo-runner.sh b/ct/forgejo-runner.sh index 0c0fd8aa..06f2b3f4 100644 --- a/ct/forgejo-runner.sh +++ b/ct/forgejo-runner.sh @@ -62,10 +62,16 @@ function update_script() { exit } -# Fail early if running unattended without a runner token -if [[ -n "${mode:-}" && -z "${var_forgejo_runner_token:-}" ]]; then - msg_error "var_forgejo_runner_token is required for unattended installs." - exit 1 +# Fail early if running unattended without required values +if [[ -n "${mode:-}" ]]; then + if [[ -z "${var_forgejo_instance:-}" ]]; then + msg_error "var_forgejo_instance is required for unattended installs." + exit 1 + fi + if [[ -z "${var_forgejo_runner_token:-}" ]]; then + msg_error "var_forgejo_runner_token is required for unattended installs." + exit 1 + fi fi start