Changeset 21603

Show
Ignore:
Timestamp:
25.01.2010 14:21:20 (9 years ago)
Author:
oranfry
Message:

fixed infinite loop when ext dir exists but is empty

Files:
1 modified

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