Fix job prefix in log messages
authorAlexander Barton <alex@barton.de>
Mon, 7 Dec 2015 09:29:08 +0000 (10:29 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 7 Dec 2015 09:29:08 +0000 (10:29 +0100)
scripts/trigger-rcmd

index ae709d5f5dd003f8ce431529c2a05e1cc43dc69a..d1d13f35d1fc8e30dcc0b8f1a92937580184e54e 100755 (executable)
@@ -37,7 +37,7 @@ do_rcmd() {
                return 2
        fi
 
-       NAME="$NAME($1)"
+       local NAME="$NAME($1)"
 
        echo "$NAME: Checking system \"$SYSTEM\" ..."
        fping -c1 -q "$SYSTEM" 2>/dev/null