lib/rbbt/util/cmd.rb in rbbt-util-5.5.43 vs lib/rbbt/util/cmd.rb in rbbt-util-5.5.44
- old
+ new
@@ -152,10 +152,10 @@
STDOUT.reopen sout.last
sout.last.close
STDOUT.sync = STDERR.sync = true
- exec(cmd)
+ exec(ENV, cmd)
exit(-1)
rescue Exception
Log.debug{ "CMDError: #{$!.message}" } if log
Log.debug{ "Backtrace: \n" + $!.backtrace * "\n" } if log