From df74ba274c4ea5d9b7388c33500ba601ed0c991d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 24 Jan 2021 00:27:50 +0100 Subject: sfeed_update: print the filename again as passed as a parameter ... and do not show stderr of readlink. --- sfeed_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfeed_update') 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 -- cgit v1.2.3