1 |
On Wednesday 26 September 2007, Robin H. Johnson wrote: |
2 |
> On Wed, Sep 26, 2007 at 06:41:50AM +0000, Mike Frysinger (vapier) wrote: |
3 |
> > - if [[ -f "${ROOT}/etc/conf.d/$1" ]]; then |
4 |
> > + if [[ -f ${ROOT}/etc/conf.d/$1 ]]; then |
5 |
> |
6 |
> You removed the quotes here - $ROOT with spaces? |
7 |
|
8 |
same as your other comments, irrelevant ... [[ ]] handles things properly |
9 |
|
10 |
> > - for f in ${ROOT}etc/init.d/net.*; do |
11 |
> > - [[ -L ${f} || ${f} == "${ROOT}etc/init.d/${lo}" ]] && continue |
12 |
> > + for f in "${ROOT}"etc/init.d/net.*; do |
13 |
> > + [[ -L ${f} || ${f} == */${lo} ]] && continue |
14 |
> |
15 |
> Again the quotes, and that conditional looks iffy, it was checking |
16 |
> against ${ROOT}/etc/init.d/net.lo before, and now it's checking against |
17 |
> ${PWD}/*/net.lo? |
18 |
|
19 |
where do you see $PWD ? i see a simple string match |
20 |
-mike |