diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-04-16 10:40:50 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-04-27 22:41:21 +0100 |
commit | be4042eab201d448f6156ded1ea0a978e9290d89 (patch) | |
tree | 9619e6ffa28ef0319dd3a6d7dcf0d3138aaa47e4 /eclass | |
parent | cdrom.eclass: Detect case-insensitively and handle special characters (diff) | |
download | gentoo-be4042eab201d448f6156ded1ea0a978e9290d89.tar.gz gentoo-be4042eab201d448f6156ded1ea0a978e9290d89.tar.bz2 gentoo-be4042eab201d448f6156ded1ea0a978e9290d89.zip |
cdrom.eclass: Simplify printing of CD_ROOT_# variable names
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cdrom.eclass | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass index a51270d33e94..4c4922fe3417 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" |