aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-09-01 23:39:34 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-09-01 23:39:34 +0200
commit5c7cde6227499cca1ea53891098098c7e727312c (patch)
treebdac2a394ebd685bf0f77069f6c75da035106fb2
parentfae28357c7cd739f7d0b96c81b4933bdfcd4466a (diff)
bridge-port-to-default: better check for non-empty value
-rw-r--r--bridge-port-to-default2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge-port-to-default b/bridge-port-to-default
index 7051f34..55d383a 100644
--- a/bridge-port-to-default
+++ b/bridge-port-to-default
@@ -11,7 +11,7 @@
:global LogPrintExit;
:global ParseKeyValueStore;
-:foreach BridgePort in=[ / interface bridge port find where comment~"." ] do={
+:foreach BridgePort in=[ / interface bridge port find where !(comment=[]) ] do={
:local BridgePortVal [ / interface bridge port get $BridgePort ];
:foreach Config,BridgeDefault in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={
:if ($Config = $BridgePortTo) do={