fix package count
This commit is contained in:
parent
f7d6043baa
commit
67956da8d7
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -e
|
||||||
info="$(xbps-install -Mun)"
|
info="$(xbps-install -Mun)"
|
||||||
[ -z $info ] && exit
|
[ -z $info ] && exit
|
||||||
|
|
||||||
PKG_COUNT="$(echo -n "$info" | wc -l)"
|
PKG_COUNT="$(echo "$info" | wc -l)"
|
||||||
|
|
||||||
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