mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 12:04:29 +02:00
mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate unintentional error
This commit is contained in:
parent
73e0ac75f1
commit
1788c05998
1 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
:global SSHKeysImportFile;
|
||||
|
||||
# import single key passed as string
|
||||
:set SSHKeysImport do={
|
||||
:set SSHKeysImport do={ :do {
|
||||
:local Key [ :tostr $1 ];
|
||||
:local User [ :tostr $2 ];
|
||||
|
||||
|
@ -64,7 +64,9 @@
|
|||
/file/remove "tmpfs/ssh-keys-import";
|
||||
:return false;
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# import keys from a file
|
||||
:set SSHKeysImportFile do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue