diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-31 15:49:38 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 00:24:17 +1000 |
commit | 886b2178bfffa8d355e25a743132ece11c6d3bb2 (patch) | |
tree | 46db9b620dcc53df05a1fbade217f5eddc0fd31b /bin | |
parent | e621b365f0097c164cf1bdbbc19b3141f03f741b (diff) | |
download | gitlab-shell-886b2178bfffa8d355e25a743132ece11c6d3bb2.tar.gz |
key_id is overloaded, use key_str
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gitlab-shell | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell index 6ef572f..818a328 100755 --- a/bin/gitlab-shell +++ b/bin/gitlab-shell @@ -5,7 +5,7 @@ unless ENV['SSH_CONNECTION'] exit end -key_id = /key-[0-9]+/.match(ARGV.join).to_s +key_str = /key-[0-9]+/.match(ARGV.join).to_s original_cmd = ENV.delete('SSH_ORIGINAL_COMMAND') require_relative '../lib/gitlab_init' @@ -17,7 +17,7 @@ require_relative '../lib/gitlab_init' # require File.join(ROOT_PATH, 'lib', 'gitlab_shell') -if GitlabShell.new(key_id).exec(original_cmd) +if GitlabShell.new(key_str).exec(original_cmd) exit 0 else exit 1 |