Try to fix counter
This commit is contained in:
parent
756f99e086
commit
88dfa6fabf
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue