From 560cadf4a61cab9d2383221cbf3eae86e506e8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Thu, 28 Mar 2024 15:38:14 +0100 Subject: [PATCH] Fix ephemeral option passing When not running with an environment file, only pass the ephemeral option if it was set. This is a bugfix. --- runner.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runner.sh b/runner.sh index 840b2cc..ce8ef6e 100755 --- a/runner.sh +++ b/runner.sh @@ -251,7 +251,6 @@ EOF set -- -k "/${RUNNER_VM_ENVDIR}/${_id}.tkn" "$@" else set -- \ - -e \ -g "$RUNNER_GITHUB" \ -G "$RUNNER_GROUP" \ -i "$_id" \ @@ -262,6 +261,9 @@ EOF -S "$RUNNER_SECRET" \ -T "$RUNNER_PAT" \ -u "$RUNNER_USER" + if is_true "$RUNNER_EPHEMERAL"; then + set -- -e "$@" + fi for _ in $(seq 1 "$RUNNER_VERBOSE"); do set -- -v "$@" done