From 2c114af8193156caa9939450c8c775138cfbb60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 6 Jan 2024 12:47:53 +0800 Subject: [PATCH] Fix FREETDS_DIR not set when bundle update. --- sync_nccu_personal_data.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/sync_nccu_personal_data.gemspec b/sync_nccu_personal_data.gemspec index daa6bc4..02b7469 100644 --- a/sync_nccu_personal_data.gemspec +++ b/sync_nccu_personal_data.gemspec @@ -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 == ""