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:
parent
a8bbf351c0
commit
5fc1b0e2fb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue