diff options
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-x | functions/conffile.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh index fab8dc1c4..bd5547e60 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -11,17 +11,16 @@ set -e Read_conffile () { - CONFFILE="${1}" + FILE="${1}" - # Reading configuration file - if [ -f "${CONFFILE}" ] + if [ -f "${FILE}" ] then - if [ -r "${CONFFILE}" ] + if [ -r "${FILE}" ] then - # Sourcing configurationfile - . "${CONFFILE}" + Echo_debug "Reading configuration file ${FILE}" + . "${FILE}" else - echo "W: failed to read ${CONFFILE}" + Echo_warning "Failed to read configuration file ${FILE}" fi fi } |