From fa7f37e87f2d46648c49e941a630917d72e02804 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 20 Jan 2021 14:07:20 +0100 Subject: global-functions: $WaitForFile: declare input first --- global-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/global-functions b/global-functions index de4b64e..c67fe7f 100644 --- a/global-functions +++ b/global-functions @@ -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={ -- cgit v1.2.3-70-g09d2