treat backticks in config yaml template as literals

This commit is contained in:
sebthom 2023-07-01 13:56:53 +02:00
parent 19fd530b02
commit 6b85990415
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ if [ -n "${GITEA_RUNNER_GID:-}" ]; then
fi
fi
#################################################################
# check if act user has read/write access to /var/run/docker.sock
#################################################################

View File

@ -42,6 +42,7 @@ if [[ ${GITEA_RUNNER_LOG_EFFECTIVE_CONFIG:-false} == "true" ]]; then
echo "==========================================================="
while IFS= read -r line; do
line=${line//\"/\\\"} # escape double quotes
line=${line//\`/\\\`} # escape backticks
eval "echo \"$line\"" | tee -a "$effective_config_file"
done < $GITEA_RUNNER_CONFIG_TEMPLATE_FILE
echo "==========================================================="