lib/rbbt/resource/util.rb in rbbt-util-5.26.98 vs lib/rbbt/resource/util.rb in rbbt-util-5.26.99

- old
+ new

@@ -29,10 +29,10 @@ end end module Resource def set_software_env(software_dir) - software_dir.find_all.each do |software_dir| + software_dir.find_all.reverse.each do |software_dir| next unless software_dir.exists? software_dir = File.expand_path(software_dir) opt_dir = File.join(software_dir, 'opt') bin_dir = File.join(opt_dir, 'bin')