mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-04 07:04:30 +02:00
global-functions: $MkDir: use shorter random string
... but with all characters from alphabet with $GetRandom20CharAlNum.
This commit is contained in:
parent
514d241969
commit
3c4595e82b
1 changed files with 2 additions and 2 deletions
|
@ -506,7 +506,7 @@
|
||||||
:local Dir [ :tostr $1 ];
|
:local Dir [ :tostr $1 ];
|
||||||
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
:global GetRandom20CharHex;
|
:global GetRandom20CharAlNum;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
|
||||||
|
@ -521,7 +521,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:local Return true;
|
:local Return true;
|
||||||
:local Name ($Dir . "-" . [ $GetRandom20CharHex ]);
|
:local Name ($Dir . "-" . [ $GetRandom20CharAlNum 6 ]);
|
||||||
:do {
|
:do {
|
||||||
/ip/smb/share/add disabled=yes directory=$Dir name=$Name;
|
/ip/smb/share/add disabled=yes directory=$Dir name=$Name;
|
||||||
$WaitForFile $Dir;
|
$WaitForFile $Dir;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue