summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_update4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_update b/sfeed_update
index 6ca5d6e..3cf575c 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -15,7 +15,7 @@ loadconfig() {
# allow to specify config via argv[1].
if [ "$1" != "" ]; then
# get absolute path of config file.
- config=$(readlink -f "$1")
+ config=$(readlink -f "$1" 2>/dev/null)
else
# default config location.
config="$HOME/.sfeed/sfeedrc"
@@ -25,7 +25,7 @@ loadconfig() {
if [ -r "${config}" ]; then
. "${config}"
else
- echo "Configuration file \"${config}\" does not exist or is not readable." >&2
+ echo "Configuration file \"$1\" does not exist or is not readable." >&2
echo "See sfeedrc.example for an example." >&2
exit 1
fi