mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-25 11:18:40 +02:00
Update
This commit is contained in:
parent
50874b1760
commit
c46ad9c453
1 changed files with 4 additions and 1 deletions
|
@ -6,13 +6,16 @@
|
||||||
|
|
||||||
|
|
||||||
:if ([:len [/file find name=$scriptName]] <= 0) do={
|
:if ([:len [/file find name=$scriptName]] <= 0) do={
|
||||||
|
|
||||||
:log info ($scriptName." not found, make sure file exists!");
|
:log info ($scriptName." not found, make sure file exists!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([:len [/file find name=$scriptName]] > 0) do={
|
:if ([:len [/file find name=$scriptName]] > 0) do={
|
||||||
|
|
||||||
:log info ($scriptName." found. Executing!");
|
:log info ($scriptName." found. Executing!");
|
||||||
/system script run $scriptName;
|
/system script run $scriptName;
|
||||||
:log info ($scriptName." loaded to environment");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue