commit df74ba274c4ea5d9b7388c33500ba601ed0c991d
parent 55d64a0d370b140547fdbab88d271cd6b92265d2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 24 Jan 2021 00:27:50 +0100
sfeed_update: print the filename again as passed as a parameter
... and do not show stderr of readlink.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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