diff options
author | Christian Hesse <mail@eworm.de> | 2021-01-20 14:07:20 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-01-20 14:07:20 +0100 |
commit | fa7f37e87f2d46648c49e941a630917d72e02804 (patch) | |
tree | 470aa12fd2c87ab180cd71fda45946027fa32364 /global-functions | |
parent | dc148065dc62178efe6729ae018f83284b1770b5 (diff) |
global-functions: $WaitForFile: declare input first
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 4 |
1 files changed, 3 insertions, 1 deletions
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={ |