cdrom.eclass: Simplify printing of CD_ROOT_# variable names
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 16 Apr 2017 09:40:50 +0000 (10:40 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Thu, 27 Apr 2017 21:41:21 +0000 (22:41 +0100)
eclass/cdrom.eclass

index a51270d33e94de4640967a04b52a6bab58fef0db..4c4922fe3417fefdcd4a07bb5ed6795902d3049f 100644 (file)
@@ -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"