mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-07-17 17:24:45 +02:00
commit
2392ac3fda
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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue