summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2017-04-16 11:07:29 +0100
committerJames Le Cuirot <chewi@gentoo.org>2017-04-27 22:41:23 +0100
commit0dc0a408918e16b0d0a03755110728ca307c65d1 (patch)
tree00942fbf8c038ee65d6985558203025de02d1172 /eclass
parentcdrom.eclass: Remove ye olde Submount check (diff)
downloadgentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.tar.gz
gentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.tar.bz2
gentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.zip
cdrom.eclass: Simplify loop with seq
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cdrom.eclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 123be696637..709338dab94 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -104,10 +104,9 @@ cdrom_get_cds() {
else
_cdrom_set_names
einfo "This package will need access to ${CDROM_TOTAL_CDS} cds."
- cdcnt=0
- while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do
- ((++cdcnt))
- var="CDROM_NAME_${cdcnt}"
+ local cdcnt
+ for cdcnt in $(seq ${#}); do
+ local var=CDROM_NAME_${cdcnt}
[[ ! -z ${!var} ]] && einfo " CD ${cdcnt}: ${!var}"
done
echo