mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-20 17:05:44 +02:00
mod/ssh-keys-import: use $FileExists ...
... to work around restrictions in new file handling.
This commit is contained in:
parent
2d81984aed
commit
80aed200fd
1 changed files with 2 additions and 2 deletions
|
@ -75,6 +75,7 @@
|
|||
:local User [ :tostr $2 ];
|
||||
|
||||
:global EitherOr;
|
||||
:global FileExists;
|
||||
:global LogPrint;
|
||||
:global ParseKeyValueStore;
|
||||
:global SSHKeysImport;
|
||||
|
@ -84,8 +85,7 @@
|
|||
:return false;
|
||||
}
|
||||
|
||||
:local File [ /file/find where name=$FileName ];
|
||||
:if ([ :len $File ] = 0) do={
|
||||
:if ([ $FileExists $FileName ] = true) do={
|
||||
$LogPrint warning $0 ("File '" . $FileName . "' does not exist.");
|
||||
:return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue