Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Use File.expand_path when computing RAILS_ROOT to handle symlinked co…
Browse files Browse the repository at this point in the history
…pies of the plugin in vendor/
  • Loading branch information
sstephenson committed Feb 12, 2009
1 parent e3603df commit d58d9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
require "fileutils" require "fileutils"
include FileUtils::Verbose include FileUtils::Verbose


RAILS_ROOT = File.join(File.dirname(__FILE__), "..", "..", "..") unless defined?(RAILS_ROOT) RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..")) unless defined?(RAILS_ROOT)


mkdir_p File.join(RAILS_ROOT, "vendor", "sprockets") mkdir_p File.join(RAILS_ROOT, "vendor", "sprockets")
mkdir_p File.join(RAILS_ROOT, "app", "javascripts") mkdir_p File.join(RAILS_ROOT, "app", "javascripts")
Expand Down

0 comments on commit d58d9dc

Please sign in to comment.