aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-28 15:59:23 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-06-28 11:29:02 +0200
commit08e9634154b6a93367fae83ced3fe32c4c3c7f8b (patch)
tree8c62ab42c6c74c5f5258f2e6bf739a05cba52adb
parent5db9a71802230f8cbc0bf17d2a58c89c9c872dda (diff)
global-functions: $MkDir: drop extra block, restore indention
We had this to make the previous commit cleaner. No functional change.
-rw-r--r--global-functions.rsc27
1 files changed, 13 insertions, 14 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 476db7c..e317af9 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -635,23 +635,22 @@
:return true;
}
- {
- :if ([ :pick $Path 0 5 ] = "tmpfs") do={
- :if ([ $MkTmpfs ] = false) do={
- :return false;
- }
- }
-
- :do {
- :local File ($Path . "/file");
- /file/add name=$File;
- $WaitForFile $File;
- /file/remove $File;
- } on-error={
- $LogPrintExit2 warning $0 ("Making directory '" . $Path . "' failed!") false;
+ :if ([ :pick $Path 0 5 ] = "tmpfs") do={
+ :if ([ $MkTmpfs ] = false) do={
:return false;
}
}
+
+ :do {
+ :local File ($Path . "/file");
+ /file/add name=$File;
+ $WaitForFile $File;
+ /file/remove $File;
+ } on-error={
+ $LogPrintExit2 warning $0 ("Making directory '" . $Path . "' failed!") false;
+ :return false;
+ }
+
:return true;
}