Commit 095531ac941eee0b212ade880c3248af4815b624
Committed by
Antonio Terceiro
1 parent
93103d85
Exists in
master
and in
28 other branches
Don't force a non-existing Debian-installed Rails
Signed-off-by: Antonio Terceiro <terceiro@colivre.coop.br>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/boot.rb
... | ... | @@ -109,7 +109,7 @@ end |
109 | 109 | def install_debian_rails |
110 | 110 | local_rails = File.dirname(__FILE__) + '/../vendor/rails' |
111 | 111 | debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) } |
112 | - if !File.exist?(local_rails) && File.exists?(debian_rails) | |
112 | + if !File.exist?(local_rails) && debian_rails && File.exists?(debian_rails) | |
113 | 113 | File.delete(local_rails) if File.symlink?(local_rails) # remove dangling symlink |
114 | 114 | puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails." |
115 | 115 | recommended_rails_version = Rails::GemBoot.gem_version | ... | ... |