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.ath.cx/gitweb/?a=commitdiff_plain;h=1c8642ec5bbf52a9d1387ae4ce5685ed7803b120;p=trigger-rcmd.git 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