From 88dfa6fabfc260aee2412304b36e859793174b24 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 21 Oct 2024 08:38:39 -0400 Subject: [PATCH] Try to fix counter --- .forgejo/workflows/sync-community.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/sync-community.yml b/.forgejo/workflows/sync-community.yml index d254b5c..39501b5 100644 --- a/.forgejo/workflows/sync-community.yml +++ b/.forgejo/workflows/sync-community.yml @@ -28,7 +28,8 @@ jobs: cat missing - name: Send missing packages downstream run: | - read total < wc -l missing | awk '{print $1}' + wc -l missing | awk '{print $1}' > total + read total < total count=0 while read pkgs; do echo "[ $count / $total ] Sending $pkgs" @@ -39,4 +40,5 @@ jobs: else echo "Error: Couldn't download $pkgs" fi + let count++ done < missing