diff options
author | Pablo Carranza <pcarranza@gmail.com> | 2016-03-21 15:33:49 +0000 |
---|---|---|
committer | Pablo Carranza <pcarranza@gmail.com> | 2016-03-24 20:49:21 +0000 |
commit | 089df337c5a693524784a47c404068486d2c59a6 (patch) | |
tree | 4571f41775e3dd5c69185cc25d33c230fa76008c | |
parent | fd0d518bac9b939360a34112e25f96a911596923 (diff) | |
download | gitlab-shell-089df337c5a693524784a47c404068486d2c59a6.tar.gz |
Add empty key check
-rwxr-xr-x | bin/authorized_keys | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/authorized_keys b/bin/authorized_keys index 6c63efa..6fa0426 100755 --- a/bin/authorized_keys +++ b/bin/authorized_keys @@ -1,7 +1,7 @@ #!/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. # /bin/authorized_keys BASE64-KEY @@ -11,7 +11,7 @@ # 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_net" |