aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:03:31 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-20 14:03:31 +0100
commitdc148065dc62178efe6729ae018f83284b1770b5 (patch)
tree95f3b653a77d3e56a82736338440b530732c38e8
parent6cea5a9f9b7f331ef0dcc7eb494887eef2441a62 (diff)
global-functions: $MkDir: clean path
-rw-r--r--global-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 7fa41ea..de4b64e 100644
--- a/global-functions
+++ b/global-functions
@@ -480,8 +480,11 @@
:set MkDir do={
:local Dir [ :tostr $1 ];
+ :global CleanFilePath;
:global WaitForFile;
+ :set Dir [ $CleanFilePath $Dir ];
+
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 0) do={
:local WwwVal [ / ip service get www ];
/ ip service set www address=127.0.0.1/32 disabled=no port=80;