diff options
author | Christian Hesse <mail@eworm.de> | 2024-11-12 17:41:54 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-11-12 17:41:54 +0100 |
commit | d97f63fa5a9e4649338e2a70e83516fbd6a61abc (patch) | |
tree | 8da181d0862bf4752aa9ce3b8e7d68bc7ae17ed1 | |
parent | 6c8fa8e639318b72c2102dfff884aa039d09a0f0 (diff) |
check-routeros-update: add specific message for empty version string
-rw-r--r-- | check-routeros-update.rsc | 5 |
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" ]; |