aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:07:20 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:07:20 +0100
commitfa7f37e87f2d46648c49e941a630917d72e02804 (patch)
tree470aa12fd2c87ab180cd71fda45946027fa32364 /global-functions
parentdc148065dc62178efe6729ae018f83284b1770b5 (diff)
global-functions: $WaitForFile: declare input first
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
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={