check-routeros-update: fail on empty version string

This commit is contained in:
Christian Hesse 2019-08-08 20:27:11 +02:00
parent dcd47d8ac4
commit 4210a49098

View file

@ -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 ];