aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-02-10 11:05:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-02-10 11:05:21 +0100
commit7b48b25c271111570d27708ceac437e24f05e6fe (patch)
tree8453d0fc083fa1ec686844b194a8228bc05428da /global-functions
parenta50d9d30e3fbf6b4236f99cb40df656206492f8f (diff)
global-functions: $MkDir: do not act without directory
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 4d1d1a1..acf3546 100644
--- a/global-functions
+++ b/global-functions
@@ -510,6 +510,10 @@
:set Dir [ $CleanFilePath $Dir ];
+ :if ($Dir = "") do={
+ :return true;
+ }
+
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 1) do={
:return true;
}