diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-04-16 11:07:29 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-04-27 22:41:23 +0100 |
commit | 0dc0a408918e16b0d0a03755110728ca307c65d1 (patch) | |
tree | 00942fbf8c038ee65d6985558203025de02d1172 /eclass/cdrom.eclass | |
parent | cdrom.eclass: Remove ye olde Submount check (diff) | |
download | gentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.tar.gz gentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.tar.bz2 gentoo-0dc0a408918e16b0d0a03755110728ca307c65d1.zip |
cdrom.eclass: Simplify loop with seq
Diffstat (limited to 'eclass/cdrom.eclass')
-rw-r--r-- | eclass/cdrom.eclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass index 123be696637c..709338dab94c 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 |