1 |
On Wed, 18 Jan 2012 09:48:59 -0500 |
2 |
Mike Frysinger <vapier@g.o> wrote: |
3 |
|
4 |
> On Wednesday 18 January 2012 08:39:04 Michał Górny wrote: |
5 |
> > On Wed, 18 Jan 2012 06:22:24 -0500 Mike Frysinger wrote: |
6 |
> > > > > # now we see if the user gave use CD_ROOT ... |
7 |
> > > > > # if they did, let's just believe them that it's |
8 |
> > > > > correct if [[ -n ${CD_ROOT}${CD_ROOT_1} ]] ; then |
9 |
> > > > > |
10 |
> > > > > local var= |
11 |
> > > > > cdcnt=0 |
12 |
> > > > > while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; |
13 |
> > > > > do ((++cdcnt)) |
14 |
> > > > > var="CD_ROOT_${cdcnt}" |
15 |
> > > > > [[ -z ${!var} ]] && var="CD_ROOT" |
16 |
> > > > > if [[ -z ${!var} ]] ; then |
17 |
> > > > > eerror "You must either use |
18 |
> > > > > just the CD_ROOT" eerror "or specify ALL the CD_ROOT_X |
19 |
> > > > > variables." eerror "In this case, you will |
20 |
> > > > > need" \ "${CDROM_TOTAL_CDS} CD_ROOT_X |
21 |
> > > > > variables." die "could not locate CD_ROOT_${cdcnt}" |
22 |
> > > > > fi |
23 |
> > > > > done |
24 |
> > > > > export CDROM_ROOT=${CD_ROOT_1:-${CD_ROOT}} |
25 |
> > > > > einfo "Found CD #${CDROM_CURRENT_CD} root at |
26 |
> > > > > ${CDROM_ROOT}" |
27 |
> > > > |
28 |
> > > > #1. You are using 1 in variable calls, I don't see a reason to |
29 |
> > > > use longer ${CDROM_CURRENT_CD} in this one output case. |
30 |
> > > |
31 |
> > > i don't know what you mean |
32 |
> > |
33 |
> > einfo "Found CD #1 root at ..." |
34 |
> |
35 |
> *shrug* i preferred the # in the output |
36 |
|
37 |
I don't get what you mean. I just say it's pointless to use |
38 |
${CDROM_CURRENT_CD} here. |
39 |
|
40 |
-- |
41 |
Best regards, |
42 |
Michał Górny |