mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-08-02 00:54:54 +02:00
rc version support
Current development version is rc4, but it's not recognized by the script, however I'm not sure what would be the version number on final release and It might see rc version as the newer one.
This commit is contained in:
parent
d5d59c0ef4
commit
c04387121e
1 changed files with 6 additions and 1 deletions
|
@ -89,6 +89,11 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
|
|||
:if ($isBetaPos > 1) do={
|
||||
:set osVer ([:pick $osVer 0 $isBetaPos] . "." . [:pick $osVer ($isBetaPos + 4) [:len $osVer]]);
|
||||
}
|
||||
# Replace word `rc` with dot
|
||||
:local isRcPos [:tonum [:find $osVer "rc" 0]];
|
||||
:if ($isRcPos > 1) do={
|
||||
:set osVer ([:pick $osVer 0 $isRcPos] . "." . [:pick $osVer ($isRcPos + 2) [:len $osVer]]);
|
||||
}
|
||||
|
||||
:local dotPos1 [:find $osVer "." 0];
|
||||
|
||||
|
@ -392,4 +397,4 @@ if ($isOsNeedsToBeUpdated = true) do={
|
|||
/system package update install;
|
||||
}
|
||||
|
||||
:log info "$SMP script \"Mikrotik RouterOS automatic backup & update\" completed it's job.\r\n";
|
||||
:log info "$SMP script \"Mikrotik RouterOS automatic backup & update\" completed it's job.\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue