Strabon

changeset 242:6174ff9d242a

print reading configuration file only in debug mode
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Jun 03 18:00:58 2012 +0300 (2012-06-03)
parents 6e556c0b0b77
children 5ab3b73914e9
files scripts/strabon
line diff
     1.1 --- a/scripts/strabon	Sun Jun 03 17:57:55 2012 +0300
     1.2 +++ b/scripts/strabon	Sun Jun 03 18:00:58 2012 +0300
     1.3 @@ -131,7 +131,6 @@
     1.4  
     1.5  # read configuration script first
     1.6  if test -e "${STRABON_CONF}"; then
     1.7 -	echo "${CMD}: reading configuration file ${STRABON_CONF}"
     1.8  	. ${STRABON_CONF}
     1.9  fi
    1.10  
    1.11 @@ -230,7 +229,9 @@
    1.12  				exit 1
    1.13  			else
    1.14  				# if true, then debug has been set ON in command line
    1.15 -				echo "${CMD}: Reading configuration file \"${STRABON_CONF}\""
    1.16 +				if $DEBUG; then
    1.17 +					echo "${CMD}: Reading configuration file \"${STRABON_CONF}\""
    1.18 +				fi
    1.19  
    1.20  				. ${STRABON_CONF}
    1.21