commit 6007956080347e4f6a1ad2e32228f3246516f0ad
parent 4ce8afdf60d0690f407d610640a2c87d7b75b894
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 11 Oct 2009 13:01:24 -0700
crypto: debug output crypto commands
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
@@ -188,9 +188,11 @@ private
output_fn = Tempfile.new "redwood.output"
output_fn.close
cmd += " > #{output_fn.path} 2> /dev/null"
+ debug "crypto: running: #{cmd}"
BufferManager.shell_out cmd
IO.read(output_fn.path) rescue "can't read output"
else
+ debug "crypto: running: #{cmd}"
`#{cmd} 2> /dev/null`
end
end