aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" ];