Skip to content

Commit 06889da

Browse files
committed
Remove verbosity option from sed in publish_report_to_gist
The --quiet option causes the report to not be published.
1 parent 19a934e commit 06889da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ci-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ function publish_report_to_gist()
946946
# Sanitize the report file content so it can be sent via a POST request without breaking the JSON
947947
# Remove \r (from Windows end-of-lines), replace tabs by \t, replace " by \", replace EOL by \n
948948
local reportContent
949-
reportContent=$(sed $ARDUINO_CI_SCRIPT_QUIET_OPTION -e 's/\r//' -e's/\t/\\t/g' -e 's/"/\\"/g' "$ARDUINO_CI_SCRIPT_REPORT_FILE_PATH" | awk '{ printf($0 "\\n") }')
949+
reportContent=$(sed -e 's/\r//' -e's/\t/\\t/g' -e 's/"/\\"/g' "$ARDUINO_CI_SCRIPT_REPORT_FILE_PATH" | awk '{ printf($0 "\\n") }')
950950

951951
# Upload the report to the Gist. I have to use the here document to avoid the "Argument list too long" error from curl with long reports. Redirect output to dev/null because it dumps the whole gist to the log
952952
eval curl --header "\"Authorization: token ${token}\"" --data @- "\"https://api.github.com/gists/${gistID}\"" <<curlDataHere "$ARDUINO_CI_SCRIPT_VERBOSITY_REDIRECT"

0 commit comments

Comments
 (0)