summaryrefslogtreecommitdiff
path: root/lib/gitlab_keys.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 11:09:52 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 11:09:52 +0200
commit43bdc5da612af265b3c06eec26c36f7dbd98329e (patch)
tree1b1832bb93a4b99e2ed758bdde94d8ccaae1e79b /lib/gitlab_keys.rb
parentf3cf4a8bb49116026bd78a429050612c2e39c100 (diff)
downloadgitlab-shell-43bdc5da612af265b3c06eec26c36f7dbd98329e.tar.gz
Fix key removal
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r--lib/gitlab_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index d223d81..29a4747 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -29,7 +29,7 @@ class GitlabKeys
end
def rm_key
- cmd = "sed '/#{@key_id}/d' #{auth_file}"
+ cmd = "sed -i '/#{@key_id}/d' #{auth_file}"
system(cmd)
end
end