Skip to content

Commit

Permalink
Trying to fix shellcheck again
Browse files Browse the repository at this point in the history
  • Loading branch information
Raleksan committed Oct 2, 2024
1 parent 5f7050d commit 9491c2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions steps/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ touch "${st_list}"
groups=($(grep -oP '\[.*?\]' "${list}" | sed 's/[][]//g' || : ) "")
for group in "${groups[@]}"; do
if [[ -z "$group" ]]; then
echo "\item Ungrouped Metrics" >> "${st_list}"
echo "\\item Ungrouped Metrics" >> "${st_list}"
else
echo "\item $group" >> "${st_list}"
echo "\\item $group" >> "${st_list}"
fi
echo "\begin{itemize}" >> "${st_list}"
echo "\\begin{itemize}" >> "${st_list}"
if [[ -z "$group" ]]; then
group_metrics=$(grep -oP "^[^\[]*$" "${list}")
else
Expand All @@ -68,7 +68,7 @@ for group in "${groups[@]}"; do
for metric in "${group_metrics[@]}"; do
printf "\t%s\n" "$metric" >> "${st_list}"
done
echo "\end{itemize}" >> "${st_list}"
echo "\\end{itemize}" >> "${st_list}"
done

sed -i 's/\[[^]]*\]//g' "${st_list}"
Expand Down

0 comments on commit 9491c2e

Please sign in to comment.