diff options
author | Christian Hesse <mail@eworm.de> | 2023-03-28 15:59:23 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-06-28 11:29:02 +0200 |
commit | 08e9634154b6a93367fae83ced3fe32c4c3c7f8b (patch) | |
tree | 8c62ab42c6c74c5f5258f2e6bf739a05cba52adb /global-functions.rsc | |
parent | 5db9a71802230f8cbc0bf17d2a58c89c9c872dda (diff) |
global-functions: $MkDir: drop extra block, restore indention
We had this to make the previous commit cleaner. No functional change.
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 27 |
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; } |