From 10e0d294339567b0ad6f980c9095703f9456f76f Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 15 Jan 2022 16:51:13 +0100 Subject: [PATCH] Fix script --- helpers/gitolite/get_keys.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helpers/gitolite/get_keys.pl b/helpers/gitolite/get_keys.pl index a4fba86..b2b2e87 100755 --- a/helpers/gitolite/get_keys.pl +++ b/helpers/gitolite/get_keys.pl @@ -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; } - - }