Fix tiny_tds install failed.

This commit is contained in:
BoHung Chiu 2023-09-25 13:45:40 +08:00
parent e2a4a71815
commit 35fc437ea3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if bundle_update_flag
end
end
home_path = ENV['HOME']
if Dir.glob("#{ENV["GEM_HOME"]}/gems/tiny_tds-*").count == 0
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 == ""
home_path = app_path