summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-01-24 00:27:50 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-01-24 00:27:50 +0100
commitdf74ba274c4ea5d9b7388c33500ba601ed0c991d (patch)
tree63fda790dd973bc6efe384f01119411c060302c7
parent55d64a0d370b140547fdbab88d271cd6b92265d2 (diff)
sfeed_update: print the filename again as passed as a parameter
... and do not show stderr of readlink.
-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