1
0
Fork 0
mirror of https://github.com/hadolint/hadolint-action.git synced 2024-08-16 10:09:53 +02:00

chore: escape backticks in results var

This commit is contained in:
Harm Weites 2022-03-31 11:14:55 +02:00
parent a8bbf351c0
commit 5fc1b0e2fb
No known key found for this signature in database
GPG key ID: 512F961398DC5619

View file

@ -36,8 +36,6 @@ else
fi
FAILED=$?
echo "::set-output name=results::$RESULTS"
if [ -n "$HADOLINT_OUTPUT" ]; then
if [ -f "$HADOLINT_OUTPUT" ]; then
HADOLINT_OUTPUT="$TMP_FOLDER/$HADOLINT_OUTPUT"
@ -45,6 +43,9 @@ if [ -n "$HADOLINT_OUTPUT" ]; then
echo "$RESULTS" > $HADOLINT_OUTPUT
fi
RESULTS="${RESULTS//\`/\\\`}"
echo "::set-output name=results::$RESULTS"
[ -z "$HADOLINT_OUTPUT" ] || echo "Hadolint output saved to: $HADOLINT_OUTPUT"
exit $FAILED