Skip to content

Commit

Permalink
Fix ignored -C when creating key (GitHub #46)
Browse files Browse the repository at this point in the history
When a user was providing a custom key comment via -C, it was ignored
and our default comment always overrided it. Fixed.

#46
  • Loading branch information
dolmen committed Sep 13, 2022
1 parent 2d688ef commit ca47bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/github-keygen
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ foreach my $user (@github_accounts) {
printf "Creating private key %s for user %s...\n",
compress_path($u->{key_file}), $user;

$u->{key_comment} = hostname."/$user\@github.com";
$u->{key_comment} //= hostname."/$user\@github.com";

system 'ssh-keygen',
'-t', delete $u->{key_type},
Expand Down

0 comments on commit ca47bda

Please sign in to comment.