Skip to content

Commit

Permalink
Merge pull request #382 from Raleksan/macos_build_fix
Browse files Browse the repository at this point in the history
Fix issue with make-macos CI
  • Loading branch information
yegor256 authored Oct 11, 2024
2 parents 9331a8a + 4ed25f6 commit 1273225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions steps/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ touch "${st_list}"
groups=()
while IFS='' read -r line; do
groups+=("$line")
done < <(grep -oP '\[.*?\]' "${list}" | sed 's/[][]//g' | sort -u || : ; echo "Ungrouped metrics")
done < <(grep -oE '\[.*\]' "${list}" | sed 's/[][]//g' | sort -u || : ; echo "Ungrouped metrics")
for idx in "${!groups[@]}"; do
if [ "$idx" -eq $(( ${#groups[@]} - 1 )) ]; then
group_metrics=$(grep -oP "^[^\[]*$" "${list}" || :)
group_metrics=$(grep -oE "^[^[]*$" "${list}" || :)
else
group_metrics=$(grep -oP ".*\[\b${groups[$idx]}\b\].*" "${list}" || :)
group_metrics=$(grep -oE ".*\b${groups[$idx]}\b.*" "${list}" || :)
fi
if [[ $(printf "%s\n" "${group_metrics[@]}" | grep -c "item") -eq 0 ]]; then continue; fi
printf "\\item %s\n" "${groups[$idx]}" >> "${st_list}"
Expand Down

0 comments on commit 1273225

Please sign in to comment.