mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: fail on empty version string
This commit is contained in:
parent
dcd47d8ac4
commit
4210a49098
|
@ -30,6 +30,11 @@
|
||||||
/ system package update check-for-updates without-paging;
|
/ system package update check-for-updates without-paging;
|
||||||
:local Update [ / system package update get ];
|
:local Update [ / system package update get ];
|
||||||
|
|
||||||
|
:if ([ :len ($Update->"latest-version") ] = 0) do={
|
||||||
|
:log warning "An empty string is not a valid version.";
|
||||||
|
:error "Warning: See log for details.";
|
||||||
|
}
|
||||||
|
|
||||||
:if ($Update->"installed-version" != $Update->"latest-version") do={
|
:if ($Update->"installed-version" != $Update->"latest-version") do={
|
||||||
:local BoardName [ / system resource get board-name ];
|
:local BoardName [ / system resource get board-name ];
|
||||||
:local RouterBoard [ / system routerboard get ];
|
:local RouterBoard [ / system routerboard get ];
|
||||||
|
|
Loading…
Reference in a new issue