summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-04 08:56:51 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-04 08:56:51 +0200
commit451b4a64c0a3e39902ad87dfe034c58d8c6d45dc (patch)
tree7d8a33f43348fc5527ec0f13e9eb43bf50365fa0
parentc6fa7e5e86d7fdb5fcba88bdb8a4f506aabd3305 (diff)
downloadgitlab-shell-451b4a64c0a3e39902ad87dfe034c58d8c6d45dc.tar.gz
proper rm-user
-rw-r--r--lib/gitlab_keys.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index 7defc45..3612bca 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -37,8 +37,7 @@ class GitlabKeys
end
def rm_user
- cmd = "sed -i '/#{@username}/d' #{auth_file}"
- puts cmd
+ cmd = "sed -i '/gitlab-shell #{@username},/d' #{auth_file}"
system(cmd)
end
end