treat backticks in config yaml template as literals
This commit is contained in:
parent
19fd530b02
commit
6b85990415
|
|
@ -95,6 +95,7 @@ if [ -n "${GITEA_RUNNER_GID:-}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
# check if act user has read/write access to /var/run/docker.sock
|
# check if act user has read/write access to /var/run/docker.sock
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ if [[ ${GITEA_RUNNER_LOG_EFFECTIVE_CONFIG:-false} == "true" ]]; then
|
||||||
echo "==========================================================="
|
echo "==========================================================="
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
line=${line//\"/\\\"} # escape double quotes
|
line=${line//\"/\\\"} # escape double quotes
|
||||||
|
line=${line//\`/\\\`} # escape backticks
|
||||||
eval "echo \"$line\"" | tee -a "$effective_config_file"
|
eval "echo \"$line\"" | tee -a "$effective_config_file"
|
||||||
done < $GITEA_RUNNER_CONFIG_TEMPLATE_FILE
|
done < $GITEA_RUNNER_CONFIG_TEMPLATE_FILE
|
||||||
echo "==========================================================="
|
echo "==========================================================="
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue