diff options
author | Christian Hesse <mail@eworm.de> | 2023-03-07 12:08:30 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-03-07 22:26:01 +0100 |
commit | e902e3fdd5cefda19d1562a126bfebe22038d904 (patch) | |
tree | c9ce7370a645deeb2bdf032f7d26583dc259a3e7 /global-functions.rsc | |
parent | a832fd04ef085ef7e85000843a8e8fa59ce36dfb (diff) |
global-functions: $ScriptInstallUpdate: make sure not to match self
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 6f3bb86..642b800 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -801,7 +801,7 @@ :if ([ :len $SourceNew ] > 0) do={ :if ($SourceNew != $ScriptVal->"source") do={ :if ([ :pick $SourceNew 0 18 ] = "#!rsc by RouterOS\n") do={ - :local Required ([ $ParseKeyValueStore [ $Grep $SourceNew "# requires RouterOS, " ] ]->"version"); + :local Required ([ $ParseKeyValueStore [ $Grep $SourceNew ("\23 requires RouterOS, ") ] ]->"version"); :if ([ $RequiredRouterOS $0 [ $EitherOr $Required "0.0" ] false ] = true) do={ :if ([ $ValidateSyntax $SourceNew ] = true) do={ $LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false; |