mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-25 13:24:29 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
||||||
:local Continue false;
|
:local Continue false;
|
||||||
:local Line [ :pick $Keys 0 [ :find $Keys "\n" ] ];
|
:local Line [ :pick $Keys 0 [ :find $Keys "\n" ] ];
|
||||||
:set Keys [ :pick $Keys ([ :find $Keys "\n" ] + 1) [ :len $Keys ] ];
|
: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={
|
:if ($KeyVal->0 = "ssh-ed25519" || $KeyVal->0 = "ssh-rsa") do={
|
||||||
:do {
|
:do {
|
||||||
$SSHKeysImport $Line $User;
|
$SSHKeysImport $Line $User;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue