Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix: bash char escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
xens committed Oct 28, 2023
1 parent 38bc207 commit 56ca097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_executors/gitlab_custom_executor/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit 56ca097

Please sign in to comment.