Changeset 21603


Ignore:
Timestamp:
2010-01-25T14:21:20+13:00 (12 years ago)
Author:
oranfry
Message:

fixed infinite loop when ext dir exists but is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bash

    r20933 r21603  
    221221unset gsdltoenc
    222222
    223 if test -e ext ; then
    224   for gsdl_ext in ext/* ; do
    225     cd $gsdl_ext > /dev/null
    226     if test -e setup.bash ; then
    227       source ./setup.bash
    228     fi
    229     cd ../.. 
     223if test -e ext; then
     224  for gsdl_ext in ext/*; do
     225    if test -d $gsdl_ext; then
     226      cd $gsdl_ext > /dev/null
     227      if test -e setup.bash ; then
     228        source ./setup.bash
     229      fi
     230      cd ../..
     231    fi
    230232  done
    231233fi
Note: See TracChangeset for help on using the changeset viewer.