mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $MkDir: drop extra block, restore indention
We had this to make the previous commit cleaner. No functional change.
This commit is contained in:
parent
5db9a71802
commit
08e9634154
1 changed files with 13 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue