diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-10 17:56:15 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-10 17:56:15 +0200 |
commit | 2d59bd09fa58fe37e6a11a8af686b9340a8ed77d (patch) | |
tree | b7e5bf2d9d5533887473bed623589f7d300f60a8 /lib | |
parent | fd677db79be3dfa92e77f7a664a65c6aa24607ff (diff) | |
download | gitlab-shell-list-ecdsa.tar.gz |
Include ecdsa keys in `gitlab_keys list-keys`.list-ecdsa
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index 100e164..1ed0ab3 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -46,7 +46,7 @@ class GitlabKeys # key_id & public_key # command=".../bin/gitlab-shell key-741" ... ssh-rsa AAAAB3NzaDAxx2E\n # ^^^^^^^ ^^^^^^^^^^^^^^^ - matches = /^command=\".+?\s+(.+?)\".+?ssh-rsa\s(.+)\s*.*\n*$/.match(line) + matches = /^command=\".+?\s+(.+?)\".+?(?:ssh|ecdsa)-.*?\s(.+)\s*.*\n*$/.match(line) keys << "#{matches[1]} #{matches[2]}\n" unless matches.nil? end keys |