Commit d55b0f81 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

more accurate key deletion

parent 21af6c02
......@@ -28,7 +28,7 @@ class GitlabKeys
end
def rm_key
cmd = "sed -i '/#{@key_id}/d' #{auth_file}"
cmd = "sed -i '/shell #{@key_id}/d' #{auth_file}"
system(cmd)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment