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