Try to fix counter

This commit is contained in:
Antoine Martin 2024-10-21 08:38:39 -04:00
parent 756f99e086
commit 88dfa6fabf
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -28,7 +28,8 @@ jobs:
cat missing cat missing
- name: Send missing packages downstream - name: Send missing packages downstream
run: | run: |
read total < wc -l missing | awk '{print $1}' wc -l missing | awk '{print $1}' > total
read total < total
count=0 count=0
while read pkgs; do while read pkgs; do
echo "[ $count / $total ] Sending $pkgs" echo "[ $count / $total ] Sending $pkgs"
@ -39,4 +40,5 @@ jobs:
else else
echo "Error: Couldn't download $pkgs" echo "Error: Couldn't download $pkgs"
fi fi
let count++
done < missing done < missing