diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:11:56 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 210ef26b93364f4b69cde9ff34139d51572357ee (patch) | |
tree | 0f64567c8631c4569c1ea62409f1f991b3039bc6 /mod/ssh-keys-import.rsc | |
parent | 1788c0599865ee9cb7e5015e260d7e4a49abf581 (diff) |
mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod/ssh-keys-import.rsc')
-rw-r--r-- | mod/ssh-keys-import.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/ssh-keys-import.rsc b/mod/ssh-keys-import.rsc index b2f1d20..583e827 100644 --- a/mod/ssh-keys-import.rsc +++ b/mod/ssh-keys-import.rsc @@ -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; +} } |