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:
@ -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.";
|
||||
|
Reference in New Issue
Block a user