commit:     be4042eab201d448f6156ded1ea0a978e9290d89
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 16 09:40:50 2017 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 21:41:21 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be4042ea

cdrom.eclass: Simplify printing of CD_ROOT_# variable names

 eclass/cdrom.eclass | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index a51270d33e9..4c4922fe341 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -122,12 +122,7 @@ cdrom_get_cds() {
                einfo "If you do not have the CDs, but have the data files"
                einfo "mounted somewhere on your filesystem, just export"
                einfo "the following variables so they point to the right 
place:"
-               einfon ""
-               cdcnt=0
-               while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do
-                       ((++cdcnt))
-                       echo -n " CD_ROOT_${cdcnt}"
-               done
+               einfo $(printf "CD_ROOT_%d " $(seq ${#}))
                echo
                einfo "Or, if you have all the files in the same place, or"
                einfo "you only have one cdrom, you can export CD_ROOT"

Reply via email to