File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4747# Creates the annotations with all the report URLs
4848annotation-link () {
4949 local json_file=" $1 "
50- mapfile -t REPORT_URLS < <( sort " ${json_file} " | uniq)
50+ REPORT_URLS=()
51+ while IFS= read -r line; do REPORT_URLS+=(" ${line} " ); done < <( sort " ${json_file} " | uniq)
5152
5253 local REPORTS=" "
5354 REPORT_COUNT=1
@@ -189,7 +190,7 @@ find_and_upload() {
189190
190191 for index in " ${! uploads_in_progress[@]} " ; do
191192 # Note: kill -0 does not kill the pid, it provides a *nix compatible way to test the pid is responding.
192- if ! kill -0 " ${uploads_in_progress[index]} " > /dev/null; then
193+ if ! kill -0 " ${uploads_in_progress[index]} " > /dev/null 2>&1 ; then
193194 unset ' uploads_in_progress[index]'
194195 elif [[ " $iterations_waited " -gt $TIMEOUT ]]; then
195196 echo " Upload '${uploads_in_progress[index]} ' has been running for more than '${TIMEOUT} ' seconds, killing it"
252253fi
253254if [ " $ANNOTATE " != " false" ]; then
254255 annotation-link " ${REPORT_URLS_FILE} "
255- fi
256+ fi
You can’t perform that action at this time.
0 commit comments