mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $WaitForFile: declare input first
This commit is contained in:
@@ -1033,9 +1033,11 @@
|
|||||||
|
|
||||||
# wait for file to be available
|
# wait for file to be available
|
||||||
:set WaitForFile do={
|
:set WaitForFile do={
|
||||||
|
:local FileName [ :tostr $1 ];
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
|
|
||||||
:local FileName [ $CleanFilePath [ :tostr $1 ] ];
|
:set FileName [ $CleanFilePath $FileName ];
|
||||||
:local I 0;
|
:local I 0;
|
||||||
|
|
||||||
:while ([ :len [ / file find where name=$FileName ] ] = 0) do={
|
:while ([ :len [ / file find where name=$FileName ] ] = 0) do={
|
||||||
|
Reference in New Issue
Block a user