diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-30 04:33:14 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-30 04:33:14 -0700 |
commit | 5eac1f8fbce6a424d8a770b24c6a7974cd205a46 (patch) | |
tree | 1576c76dff7589d2e14944d03168d76dac4b6e95 | |
parent | fc55020536f738f253a4c21285e38fd59e549056 (diff) | |
parent | 199b2251575bb3de1e9454dcfdee7ed656d70e90 (diff) | |
download | gitlab-shell-5eac1f8fbce6a424d8a770b24c6a7974cd205a46.tar.gz |
Merge pull request #51 from max-krasnyansky/rm-key-fix
Regex used in rm-key command is too lax
-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 2173f4c..7e6362a 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -31,7 +31,7 @@ class GitlabKeys end def rm_key - cmd = "sed -i '/shell #{@key_id}/d' #{auth_file}" + cmd = "sed -i '/shell #{@key_id}\"/d' #{auth_file}" system(cmd) end end |