1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

packages-update: break if latest version is unknown

This commit is contained in:
Christian Hesse
2019-07-24 10:22:37 +02:00
parent 3aa4d7ea50
commit 7fe0938f86

View File

@ -8,6 +8,11 @@
:local Update [ / system package update get ];
:if ([ :typeof ($Update->"latest-version") ] = "nothing") do={
:log warning "Latest version is not known.";
:error "Latest version is not known.";
}
:if ($Update->"installed-version" = $Update->"latest-version") do={
:log info ("Version " . $Update->"latest-version" . " is already installed.");
:error "No updates available.";