dolmen / github-keygen

Easy creation of secure SSH configuration for your GitHub account(s)
GNU General Public License v3.0
245 stars 25 forks source link

Splice() offset past end of array when no changes to config #33

Open rikusilvola opened 7 years ago

rikusilvola commented 7 years ago

After registering the generated pub key to github, rerunning github-keygen will throw an error.

[user@fedora-23-dvm bin]$ ./github-keygen riqpe
Accounts: riqpe
riqpe: key is registered on GitHub.
No changes in ~/.ssh/known_hosts_github.
github-keygen: splice() offset past end of array at ./github-keygen line 697.
No changes in ~/.ssh/config.
[user@fedora-23-dvm bin]$
dolmen commented 7 years ago

Note that this is just a Perl warning, not a error. That's why I haven't yet rushed to fix it (but I ultimately will).