Fix FREETDS_DIR not set when bundle update.

This commit is contained in:
邱博亞 2024-01-06 12:47:53 +08:00
parent 773cea0cc5
commit 2c114af819
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ if bundle_update_flag
end
end
home_path = ENV['HOME']
ENV['FREETDS_DIR'] = "#{home_path}/freetds-1.1.24_build"
if Dir.glob("#{ENV["GEM_HOME"]}/gems/tiny_tds-*").count == 0 || Dir.glob("#{ENV["GEM_HOME"]}/extensions/*/*/tiny_tds-*/tiny_tds/*").count == 0
app_path = File.expand_path(__dir__)
if home_path.nil? || home_path == ""