aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-11-12 17:41:54 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-11-12 17:41:54 +0100
commitd97f63fa5a9e4649338e2a70e83516fbd6a61abc (patch)
tree8da181d0862bf4752aa9ce3b8e7d68bc7ae17ed1 /check-routeros-update.rsc
parent6c8fa8e639318b72c2102dfff884aa039d09a0f0 (diff)
check-routeros-update: add specific message for empty version string
Diffstat (limited to 'check-routeros-update.rsc')
-rw-r--r--check-routeros-update.rsc5
1 files changed, 5 insertions, 0 deletions
diff --git a/check-routeros-update.rsc b/check-routeros-update.rsc
index c7a5702..7ff9ccb 100644
--- a/check-routeros-update.rsc
+++ b/check-routeros-update.rsc
@@ -60,6 +60,11 @@
:error true;
}
+ :if ([ :len ($Update->"latest-version") ] = 0) do={
+ $LogPrint info $ScriptName ("Received an empty version string from server.");
+ :error false;
+ }
+
:local NumInstalled [ $VersionToNum ($Update->"installed-version") ];
:local NumLatest [ $VersionToNum ($Update->"latest-version") ];
:local BitMask [ $VersionToNum "255.255zero0" ];