From a2d04e1ca50d360431caeaeb7624638fd3c4c38b Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 11 Oct 2023 15:44:25 +0200 Subject: [PATCH] make forgejo-runner.sh run out of the source directory it needs to find the default config file --- forgejo-runner.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forgejo-runner.sh b/forgejo-runner.sh index 349e96f..8e995a7 100755 --- a/forgejo-runner.sh +++ b/forgejo-runner.sh @@ -3,7 +3,8 @@ set -ex -: ${FORGEJO_RUNNER_CONFIG:=$(pwd)/runner-config.yaml} +SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +: ${FORGEJO_RUNNER_CONFIG:=$SELF_DIR/runner-config.yaml} function dependencies() { if ! which curl daemon > /dev/null ; then