mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-30 13:14:27 +02:00
check-routeros-update: add specific message for empty version string
This commit is contained in:
parent
6c8fa8e639
commit
d97f63fa5a
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@
|
||||||
:error true;
|
: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 NumInstalled [ $VersionToNum ($Update->"installed-version") ];
|
||||||
:local NumLatest [ $VersionToNum ($Update->"latest-version") ];
|
:local NumLatest [ $VersionToNum ($Update->"latest-version") ];
|
||||||
:local BitMask [ $VersionToNum "255.255zero0" ];
|
:local BitMask [ $VersionToNum "255.255zero0" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue