From 56ca0978a0d092b08c7ba0abaadb4ef3435a38f7 Mon Sep 17 00:00:00 2001 From: Romain Aviolat Date: Sat, 28 Oct 2023 17:21:56 +0200 Subject: [PATCH] fix: bash char escaping --- custom_executors/gitlab_custom_executor/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_executors/gitlab_custom_executor/run.sh b/custom_executors/gitlab_custom_executor/run.sh index 586f2da..d569243 100755 --- a/custom_executors/gitlab_custom_executor/run.sh +++ b/custom_executors/gitlab_custom_executor/run.sh @@ -29,7 +29,7 @@ if [ "$MFA_REQUIRED" == true ] && [ "$CONTAINS_SCRIPT" == true ]; then export RUNNER_SCRIPT RUNNER_SCRIPT=$(grep -oE "x1b.32;1m.*" < "$1") # shellcheck disable=SC1003 - RUNNER_SCRIPT=$(echo "$RUNNER_SCRIPT" | tr -d '\') + RUNNER_SCRIPT=$(echo "$RUNNER_SCRIPT" | tr -d '\\') # Find the scripts SCRIPTS=$(echo "$RUNNER_SCRIPT" | grep -oE "(./|/|[a-zA-Z0-9_-])([a-zA-Z0-9_-]*/){0,}.{0,1}[a-zA-Z0-9_-]*\.(sh|py|ps1|rb|js)")