diff --git a/beef b/beef index 2ea7b65ca..7d5dcaf88 100755 --- a/beef +++ b/beef @@ -17,8 +17,8 @@ if RUBY_VERSION < '2.2' exit 1 end -$:.unshift(File.join(File.expand_path(File.dirname(__FILE__)), '.')) -$root_dir = File.expand_path('..', __FILE__) +$root_dir = File.join(File.expand_path(File.dirname(File.realpath(__FILE__))), '.') +$:.unshift($root_dir) $home_dir = File.expand_path('~/.beef', __FILE__).freeze # @note Require core loader's