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 ae709d5..d1d13f3 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