fix(forgejo-runner): also require forgejo instance URL in unattended mode

This commit is contained in:
Cyra
2026-03-29 19:30:46 -07:00
parent fb95fe9457
commit 82ea3f24f1

View File

@@ -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