lib/screwcap/runner.rb in screwcap-0.6.pre6 vs lib/screwcap/runner.rb in screwcap-0.6

- old
+ new

@@ -47,9 +47,10 @@ if command[:type] == :remote _log " I: (#{options[:address]}): #{command[:command]}\n", :color => :green stdout, stderr, exit_code, exit_signal = ssh_exec! ssh, command[:command] command[:stdout] = stdout command[:stderr] = stderr + command[:exit_code] = exit_code _log(" O: (#{options[:address]}): #{stdout}", :color => :green) unless stdout.nil? or stdout == "" _errorlog(" O: (#{options[:address]}): #{stderr}", :color => :red) unless stderr.nil? or stderr == "" _errorlog(" E: (#{options[:address]}): #{command[:command]} return exit code: #{exit_code}\n", :color => :red) if exit_code != 0 return exit_code elsif command[:type] == :local