Skip to content

Commit

Permalink
add an extra ../ when dealing with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Mar 21, 2014
1 parent 1905a7c commit 0508944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/resources/tgz/foreman
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
require "pathname"
bin_file = Pathname.new(__FILE__).realpath

gem_dir = File.expand_path("../vendor/gems", bin_file)
gem_dir = File.expand_path("../../vendor/gems", bin_file)
Dir["#{gem_dir}/**/lib"].each do |libdir|
$:.unshift libdir
end

$:.unshift File.expand_path("../lib", bin_file)
$:.unshift File.expand_path("../../lib", bin_file)

require "foreman/cli"

Expand Down

0 comments on commit 0508944

Please sign in to comment.