summaryrefslogtreecommitdiff
path: root/bin/gitlab-keys
diff options
context:
space:
mode:
authorPirate Praveen <praveen@debian.org>2015-11-10 12:51:25 -0500
committerPirate Praveen <praveen@debian.org>2015-11-10 12:51:25 -0500
commit2823f05dcfa12edc41ab0b3bcaf1959f1690f8bb (patch)
tree4723ee1209111233e623bf0057b5b8eaa3cc6e6d /bin/gitlab-keys
parent79fdf65c71e90773fbf52d6832b74cf5a7124755 (diff)
downloadgitlab-shell-2823f05dcfa12edc41ab0b3bcaf1959f1690f8bb.tar.gz
use load path instead of require_relative
Diffstat (limited to 'bin/gitlab-keys')
-rwxr-xr-xbin/gitlab-keys3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/gitlab-keys b/bin/gitlab-keys
index 9eb1950..ffe1ef0 100755
--- a/bin/gitlab-keys
+++ b/bin/gitlab-keys
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
-require_relative '../lib/gitlab_init'
+$:.unshift File.expand_path('../lib', __FILE__)
+require 'gitlab_init'
#
# GitLab Keys shell. Add/remove keys from ~/.ssh/authorized_keys