From a7916edd25637df9522cf994d6aa52c0f3e17ca0 Mon Sep 17 00:00:00 2001 From: Malik Mann Date: Tue, 16 Apr 2024 21:15:41 +0200 Subject: [PATCH] Fixed crash loop on renamed registration file --- image/run_runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/run_runner.sh b/image/run_runner.sh index 885632c..899006e 100644 --- a/image/run_runner.sh +++ b/image/run_runner.sh @@ -47,7 +47,7 @@ fi ################################################# # register act runner if required ################################################# -if [[ ! -s .runner ]]; then +if [[ ! -s ${GITEA_RUNNER_REGISTRATION_FILE:-.runner} ]]; then if [[ -z ${GITEA_RUNNER_REGISTRATION_TOKEN:-} ]]; then read -r GITEA_RUNNER_REGISTRATION_TOKEN < "$GITEA_RUNNER_REGISTRATION_TOKEN_FILE" fi