]> arthur.barton.de Git - trigger-rcmd.git/commitdiff
Fix another (last?) shellcheck(1) warning ... master
authorAlexander Barton <alex@barton.de>
Tue, 22 Dec 2020 11:15:04 +0000 (12:15 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 22 Dec 2020 11:15:04 +0000 (12:15 +0100)
scripts/trigger-rcmd

index 9ef9ad81e17b3f9c62bdc08dbc3d8a0abacd8f60..102fe162754d5e25922b9feafeee233a3f9bb5b4 100755 (executable)
@@ -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