aboutsummaryrefslogtreecommitdiffstats
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:06:31 +0100
commit3dd34523037ce356092eee59bc35acaa8d7020ed (patch)
treed4ae2a2c55c1245b2b2089da679b15bff3d5a710
parent943b60bfe38139e617b8f8eb58eccd0508d8f51a (diff)
global-functions: $MkDir: do not act without directory
(cherry picked from commit 7b48b25c271111570d27708ceac437e24f05e6fe)
-rw-r--r--global-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 0a0b1ff..9721b8b 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;
}