summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_opml_export2
-rwxr-xr-xsfeed_update2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_opml_export b/sfeed_opml_export
index 9e769f7..f949488 100755
--- a/sfeed_opml_export
+++ b/sfeed_opml_export
@@ -15,7 +15,7 @@ loadconfig() {
fi
# config is loaded here to be able to override $sfeedpath or functions.
- if [ -r "${configpath}" ] && [ ! -d "${configpath}" ]; then
+ if [ -r "${configpath}" ] && [ -f "${configpath}" ]; then
. "${configpath}"
else
printf "Configuration file \"%s\" cannot be read.\n" "${config}" >&2
diff --git a/sfeed_update b/sfeed_update
index 607c048..1f797f8 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -24,7 +24,7 @@ loadconfig() {
fi
# config is loaded here to be able to override $sfeedpath or functions.
- if [ -r "${configpath}" ] && [ ! -d "${configpath}" ]; then
+ if [ -r "${configpath}" ] && [ -f "${configpath}" ]; then
. "${configpath}"
else
printf "Configuration file \"%s\" cannot be read.\n" "${config}" >&2