From: Alexander Barton Date: Tue, 22 Dec 2020 11:15:04 +0000 (+0100) Subject: Fix another (last?) shellcheck(1) warning ... X-Git-Url: https://arthur.barton.de/gitweb/?p=trigger-rcmd.git;a=commitdiff_plain Fix another (last?) shellcheck(1) warning ... --- diff --git a/scripts/trigger-rcmd b/scripts/trigger-rcmd index 9ef9ad8..102fe16 100755 --- a/scripts/trigger-rcmd +++ b/scripts/trigger-rcmd @@ -33,9 +33,7 @@ do_rcmd() { # Read in job/configuration file, but ignore shellcheck(1) warnings: # shellcheck disable=1090 - . "$cnf" - - if [ $? -ne 0 ]; then + if ! . "$cnf"; then echo "$NAME: Failed to read \"$cnf\"!" return 2 fi