From a187a4361a87665324b1a511df7efe43c5ab4909 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 25 Oct 2018 11:38:20 +0200 Subject: bridge-port-to-default: fix variable name --- bridge-port-to-default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge-port-to-default') diff --git a/bridge-port-to-default b/bridge-port-to-default index 3b6ded1..572b3be 100644 --- a/bridge-port-to-default +++ b/bridge-port-to-default @@ -11,7 +11,7 @@ :foreach interface in=[ / interface bridge port find where comment!="" ] do={ :foreach comment in=[ :toarray [ / interface bridge port get $interface comment ] ] do={ :if ([ :pick $comment 0 ] = " ") do={ - :set comment [ :pick $commecnt 1 [ :len $commecnt ] ]; + :set comment [ :pick $comment 1 [ :len $comment ] ]; } :if ([ :pick $comment 0 $len ] = ($"bridge-port-to" . ":")) do={ :local "interface-name" [ / interface bridge port get $interface interface ]; -- cgit v1.2.3-70-g09d2