Changeset 23134

Show
Ignore:
Timestamp:
13.10.2010 15:06:37 (9 years ago)
Author:
davidb
Message:

Couple of extra minor tweaks to prevent variables being tested that are undefined

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gsicontrol.sh

    r22635 r23134  
    5858    echo "Allow external connections [yes/no]:" 
    5959    read connection ;     
    60     if [ $connection = "yes" ] || [ $connection = "y" ] ; then 
     60    if [ "x$connection" = "xyes" ] || [ "x$connection" = "xy" ] ; then 
    6161        allowfromall="Allow" 
    6262    else 
     
    115115     
    116116    externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; 
    117     if [ $externalaccess == "1" ] ; then  
     117    if [ "x$externalaccess" = "x1" ] ; then  
    118118    externalaccess="yes" 
    119119    else