mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate unintentional error

This commit is contained in:
Christian Hesse 2024-12-09 09:11:39 +01:00
parent 73e0ac75f1
commit 1788c05998

View file

@ -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={