We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 501c237 commit b3038d4Copy full SHA for b3038d4
1 file changed
lib/mruby/build.rb
@@ -60,11 +60,7 @@ class << self
60
def mruby_config_path
61
path = ENV['MRUBY_CONFIG'] || ENV['CONFIG']
62
if path.nil? || path.empty?
63
- if File.file?("./build_config.rb")
64
- path = "./build_config.rb"
65
- else
66
- path = "#{MRUBY_ROOT}/build_config/default.rb"
67
- end
+ path = File.file?("./build_config.rb") ? "./build_config.rb" : "#{MRUBY_ROOT}/build_config/default.rb"
68
elsif !File.file?(path) && !Pathname.new(path).absolute?
69
f = "#{MRUBY_ROOT}/build_config/#{path}.rb"
70
path = File.exist?(f) ? f : File.extname(path).empty? ? f : path
0 commit comments