Skip to content

Commit 33e2a7d

Browse files
committed
fix
1 parent e3bb409 commit 33e2a7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/ci-e2e-lib.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ EOF
235235
# Write content
236236
if [[ "$failure" == 0 ]]; then
237237
# No error, just write a message to the output file.
238-
echo "<system-out>hack/e2e.sh script succeeded</system-out>" >> ${output_file}
238+
echo "<system-out>hack/e2e.sh script succeeded</system-out>" >> "${output_file}"
239239
else
240240
failure_data_file="${3}"
241241
cat >> "$output_file" << EOF
@@ -244,7 +244,8 @@ EOF
244244
EOF
245245
# Erorr case, write the content of the failure data file to the output file.
246246
# Note: the sed ensures that the content does not close the CDATA section.
247-
cat "${failure_data_file}" | sed 's/]]>/]]>]]&gt;<![CDATA[/g' >> "$output_file"
247+
sed 's/]]>/]]>]]&gt;<![CDATA[/g' "${failure_data_file}" >> "$output_file"
248+
248249
cat >> "$output_file" << EOF
249250
]]>
250251
</failure>

0 commit comments

Comments
 (0)