Update daily_README.yaml

This commit is contained in:
Alexandre
2022-12-19 22:29:33 +01:00
committed by GitHub
parent 199a08d8ba
commit 270b71325c

View File

@@ -128,12 +128,12 @@ jobs:
# shellcheck disable=SC2002
echo "Global stats..."
STATS_DOWNLOADS="$(cat Stats | awk 'NR==2{print $1}')"
STATS_DOWNLOADS="$(awk 'NR==2{print $1}' Stats)"
sed -i "s|%%STATS_DOWNLOADS%%|$STATS_DOWNLOADS|g" README2.md && \
sed -i "s|%%STATS_ADDONS%%|$(find . -name "config.json" | wc -l)|g" README2.md && \
STATS_ONE="$(cat Stats | awk 'NR==3{print $(NF)}')" && \
STATS_TWO="$(cat Stats | awk 'NR==4{print $(NF)}')" && \
STATS_THREE="$(cat Stats | awk 'NR==5{print $(NF)}')"
STATS_ONE="$(awk 'NR==3{print $(NF)}' Stats)" && \
STATS_TWO="$(awk 'NR==4{print $(NF)}' Stats)" && \
STATS_THREE="$(awk 'NR==5{print $(NF)}' Stats)"
sed -i "s|%%STATS_ONE%%|${STATS_ONE^}|g" README2.md
sed -i "s|%%STATS_TWO%%|${STATS_TWO^}|g" README2.md
sed -i "s|%%STATS_THREE%%|${STATS_THREE^}|g" README2.md