From 23b4a49c0981313be4b02489640185eb2ff69082 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 14 Dec 2022 11:12:49 +0100 Subject: [PATCH] Update weekly_stats.yaml --- .github/workflows/weekly_stats.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/weekly_stats.yaml b/.github/workflows/weekly_stats.yaml index 125827bc0..71980a3d6 100644 --- a/.github/workflows/weekly_stats.yaml +++ b/.github/workflows/weekly_stats.yaml @@ -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