Changeset 23134


Ignore:
Timestamp:
10/13/10 15:06:37 (10 years ago)
Author:
davidb
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.