mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 19:44:28 +02:00
global-functions: $WaitForFile: declare input first
This commit is contained in:
parent
dc148065dc
commit
fa7f37e87f
1 changed files with 3 additions and 1 deletions
|
@ -1033,9 +1033,11 @@
|
|||
|
||||
# wait for file to be available
|
||||
:set WaitForFile do={
|
||||
:local FileName [ :tostr $1 ];
|
||||
|
||||
:global CleanFilePath;
|
||||
|
||||
:local FileName [ $CleanFilePath [ :tostr $1 ] ];
|
||||
:set FileName [ $CleanFilePath $FileName ];
|
||||
:local I 0;
|
||||
|
||||
:while ([ :len [ / file find where name=$FileName ] ] = 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue