mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-04 23:51:38 +00:00
chore: escape backticks in results var
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user