I\'m trying to run some third party bash scripts from within my ruby program.
Before I can run them they require me to source a file. On the command line it all wor
This is horrible, but..
env = %x{. /some/shell/script/which/setups/your/env && env} env.split("\n").each do |line| key, value = line.split("=", 2) ENV[key] ||= value unless value.nil? or value.empty? end