Skip to content

Commit d7edaa9

Browse files
committed
Use a loop instead of mapfiles to read URLs
1 parent 65f2a31 commit d7edaa9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hooks/pre-exit

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ fi
4747
# Creates the annotations with all the report URLs
4848
annotation-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
@@ -252,4 +253,4 @@ else
252253
fi
253254
if [ "$ANNOTATE" != "false" ]; then
254255
annotation-link "${REPORT_URLS_FILE}"
255-
fi
256+
fi

0 commit comments

Comments
 (0)