Commit 4210a490 authored by Christian Hesse's avatar Christian Hesse

check-routeros-update: fail on empty version string

parent dcd47d8a
......@@ -30,6 +30,11 @@
/ system package update check-for-updates without-paging;
: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={
:local BoardName [ / system resource get board-name ];
:local RouterBoard [ / system routerboard get ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment