Fix script

This commit is contained in:
Filip Gralinski 2022-01-15 16:51:13 +01:00
parent 1fe277c66d
commit 10e0d29433
1 changed files with 1 additions and 3 deletions

View File

@ -19,7 +19,7 @@ while (my $key = $sh->fetchrow_hashref()) {
} elsif (! defined($local_id) && $local_id !~ /\S/) {
print STDERR "not defined local_id\n";
} else {
if ($pkey !~ /^ssh-rsa /) {
if ($pkey !~ /^ssh-/) {
$pkey = 'ssh-rsa ' . $pkey;
}
@ -27,6 +27,4 @@ while (my $key = $sh->fetchrow_hashref()) {
print $fh $pkey;
close $fh;
}
}