fix package count
This commit is contained in:
parent
381ab705c4
commit
b301d9503e
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
info="$(xbps-install -Mun)"
|
info="$(xbps-install -Mun)"
|
||||||
|
[ -z $info ] && exit
|
||||||
|
|
||||||
PKG_COUNT="$(echo "$info" | wc -l)"
|
PKG_COUNT="$(echo -n "$info" | wc -l)"
|
||||||
[ $PKG_COUNT -eq 0 ] && exit
|
|
||||||
|
|
||||||
DL_SIZE="$(echo "$info" | awk '{s+=$6}END{print s}' | numfmt --to=iec-i)B"
|
DL_SIZE="$(echo "$info" | awk '{s+=$6}END{print s}' | numfmt --to=iec-i)B"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue