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

This commit is contained in:
Christian Hesse 2024-12-09 09:11:56 +01:00
parent 1788c05998
commit 210ef26b93

View file

@ -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;
} }