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
|
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
|
||||||
|
|
Loading…
Reference in a new issue