commit:     e3e633394defeb88d69b8bca2c608da0c4be838f
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 28 13:21:21 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Aug 28 13:21:21 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=e3e63339

__dyn_install: fix output by fixing the call to padl

In case both build tree and image tree are larger than 1MiB, the output
would lack MiB/GiB/etc and be misaligned due to the arguments not being
quoted.

 bin/phase-functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index ce174ba91..7fc798e7f 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -638,7 +638,7 @@ __dyn_install() {
                                        s1=$(human ${s1})
                                        if [[ ${s2} -gt 1024 ]] ; then
                                                s2=$(human ${s2})
-                                               s1=$(padl ${s1} ${s2})
+                                               s1=$(padl "${s1}" "${s2}")
                                        fi
                                        out+=" (${s1})"
                                fi

Reply via email to