aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
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={