From 3aaa1c96a8bae2fb6a54b95b99ad4e8a5e06ce3a Mon Sep 17 00:00:00 2001 From: byrsapty Date: Wed, 22 Jul 2026 22:51:51 +0300 Subject: [PATCH] Fix bash syntax error: apostrophe inside \${VAR:?message} broke brace matching "the repo's Actions" inside FORGEJO_RUNNER_TOKEN's :? error message threw off bash's parser even though the whole expression sits inside double quotes - confirmed live via bisection (bash -n on truncated line ranges pinpointed line 20 exactly, "unexpected EOF while looking for matching `''`"). Single quotes inside \${VAR:?message} aren't neutralized by the outer double quotes the way they would be in a plain string. Reworded to avoid the apostrophe entirely. Co-Authored-By: Claude Sonnet 5 --- setup-forgejo-runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-forgejo-runner.sh b/setup-forgejo-runner.sh index a190229..e7dd64a 100644 --- a/setup-forgejo-runner.sh +++ b/setup-forgejo-runner.sh @@ -17,7 +17,7 @@ set -euo pipefail FORGEJO_URL="${FORGEJO_URL:?Set FORGEJO_URL, e.g. https://git.zotac.keenetic.link}" -FORGEJO_RUNNER_TOKEN="${FORGEJO_RUNNER_TOKEN:?Set FORGEJO_RUNNER_TOKEN (registration token from the repo's Actions -> Runners page)}" +FORGEJO_RUNNER_TOKEN="${FORGEJO_RUNNER_TOKEN:?Set FORGEJO_RUNNER_TOKEN (registration token from the repo Settings -> Actions -> Runners page)}" RUNNER_NAME="${RUNNER_NAME:-graylog-container-$(hostname)}" RUNNER_LABEL="${RUNNER_LABEL:-self-hosted:host}" RUNNER_VERSION="12.13.1"