mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 13:44:26 +02:00
packages-update: break if latest version is unknown
This commit is contained in:
parent
3aa4d7ea50
commit
7fe0938f86
1 changed files with 5 additions and 0 deletions
|
@ -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.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue