diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:11:39 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 1788c0599865ee9cb7e5015e260d7e4a49abf581 (patch) | |
tree | c05cdcd844263243effb21a672f5ca1a691f5b94 | |
parent | 73e0ac75f10019794a2692371ca08a46bea69eb9 (diff) |
mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate unintentional error
-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 c7b2788..b2f1d20 100644 --- a/mod/ssh-keys-import.rsc +++ b/mod/ssh-keys-import.rsc @@ -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={ |