mod/ssh-keys-import: unbreak import from file

Looks like this broke in c3045f3723 where
a non-existent variable name was used.
This commit is contained in:
Christian Hesse 2023-12-21 11:33:09 +01:00
parent 0377064f65
commit 1c26d08267

View file

@ -85,7 +85,7 @@
:local Continue false;
:local Line [ :pick $Keys 0 [ :find $Keys "\n" ] ];
:set Keys [ :pick $Keys ([ :find $Keys "\n" ] + 1) [ :len $Keys ] ];
:local KeyVal [ :toarray [ $CharacterReplace $Key " " "," ] ];
:local KeyVal [ :toarray [ $CharacterReplace $Line " " "," ] ];
:if ($KeyVal->0 = "ssh-ed25519" || $KeyVal->0 = "ssh-rsa") do={
:do {
$SSHKeysImport $Line $User;