From: Valentin Vidic Date: Thu, 17 Jul 2008 07:38:21 +0000 (+0200) Subject: Fix parsing of apt-get download size. X-Git-Tag: debian/4.0.4~1 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=67b9df69d51251fd9e156d57daf19b5926a4919b;p=carnet-upgrade.git Fix parsing of apt-get download size. --- diff --git a/src/functions.sh b/src/functions.sh index 0af728b..56d8a9e 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -863,7 +863,7 @@ free_space() { download_size() { local size size=$(LC_ALL=C apt-get --yes --print-uris "$@" \ - | sed -n '/^Need to get / {s///; s/B\/.*//; p}') + | sed -n '/^Need to get / {s///; s/B.*//; p}') size_to_mb "${size}B" }