mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 12:54:28 +02:00
mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate unintentional error
This commit is contained in:
parent
1788c05998
commit
210ef26b93
1 changed files with 4 additions and 2 deletions
|
@ -69,7 +69,7 @@
|
|||
} }
|
||||
|
||||
# import keys from a file
|
||||
:set SSHKeysImportFile do={
|
||||
:set SSHKeysImportFile do={ :do {
|
||||
:local FileName [ :tostr $1 ];
|
||||
:local User [ :tostr $2 ];
|
||||
|
||||
|
@ -108,4 +108,6 @@
|
|||
$LogPrint warning $0 ("SSH key of type '" . $KeyVal->0 . "' is not supported.");
|
||||
}
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue