summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1185b0d..bc00867 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -47,6 +47,6 @@ class GitlabKeys
end
def clear
- system("echo '# Managed by gitlab-shell' > #{auth_file}")
+ open(auth_file, 'w') { |file| file.puts '# Managed by gitlab-shell' }
end
end