Update weekly_stats.yaml

This commit is contained in:
Alexandre
2022-12-14 11:12:49 +01:00
committed by GitHub
parent 4ff28679cb
commit 23b4a49c09

View File

@@ -56,7 +56,7 @@ jobs:
else COUNT3="-";fi
echo "$SLUG $DOWNLOADS $COUNT1 $COUNT2 $COUNT3" >> "$file"2
# Create line if not existing
if ! grep -q "$SLUG" "$file"; then
if ! grep -q "${SLUG}$" "$file"; then
sed -i "\$a$SLUG" "$file"
# shellcheck disable=SC2046
for i in $(seq $(head -n 1 $file | tr -cd ' \t' | wc -c )); do