Kouhei Sutou
null+****@clear*****
Mon Jul 7 23:30:49 JST 2014
Kouhei Sutou 2014-07-07 23:30:49 +0900 (Mon, 07 Jul 2014) New Revision: eedb3ff899e4fb435e616946407ac77cdc7ffc94 https://github.com/groonga/heroku-buildpack-groonga/commit/eedb3ff899e4fb435e616946407ac77cdc7ffc94 Message: Remove needless file existence check mkdir_p cares about it. Modified files: bin/compile Modified: bin/compile (+1 -1) =================================================================== --- bin/compile 2014-07-07 23:30:21 +0900 (1e83fce) +++ bin/compile 2014-07-07 23:30:49 +0900 (51a170e) @@ -100,7 +100,7 @@ Dir.chdir(build_dir) do app_dir = ENV["HOME"] profile_dir="#{build_dir}/.profile.d" - FileUtils.mkdir_p(profile_dir) unless FileTest.exist?(profile_dir) + FileUtils.mkdir_p(profile_dir) open("#{profile_dir}/groonga.sh", "w") do |env_file| env_file.write("export LD_LIBRARY_PATH=#{app_dir}/#{prefix}/lib:$LD_LIBRARY_PATH") end -------------- next part -------------- HTML����������������������������...Download