From 67b9df69d51251fd9e156d57daf19b5926a4919b Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 17 Jul 2008 09:38:21 +0200 Subject: [PATCH] Fix parsing of apt-get download size. --- src/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 1.7.10.4