mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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:
parent
0377064f65
commit
1c26d08267
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue