Commit 089df337 authored by Pablo Carranza's avatar Pablo Carranza

Add empty key check

parent fd0d518b
#!/usr/bin/env ruby #!/usr/bin/env ruby
# #
# GitLab shell authorized_keys. Query gitlab API to get the authorized command for a given ssh key fingerprint # GitLab shell authorized_keys. Query GitLab API to get the authorized command for a given ssh key fingerprint
# #
# Ex. # Ex.
# /bin/authorized_keys BASE64-KEY # /bin/authorized_keys BASE64-KEY
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
key = ARGV[0] key = ARGV[0]
abort "# No key provided" if key.nil? abort "# No key provided" if key.nil? || key.empty?
require_relative "../lib/gitlab_init" require_relative "../lib/gitlab_init"
require_relative "../lib/gitlab_net" require_relative "../lib/gitlab_net"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment