summaryrefslogtreecommitdiff
path: root/functions/conffile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-xfunctions/conffile.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh
index 5df00d3c5..0cd8d2934 100755
--- a/functions/conffile.sh
+++ b/functions/conffile.sh
@@ -9,8 +9,13 @@ Read_conffile ()
CONFFILE="${1}"
# Reading configuration file
- if [ -r "${CONFFILE}" ]
+ if [ -f "${CONFFILE}" ]
then
- . "${CONFFILE}"
+ if [ -r "${CONFFILE}" ]
+ then
+ . "${CONFFILE}"
+ else
+ echo "W: failed to read ${CONFFILE}"
+ fi
fi
}