lib/foreplay/engine/remote/step.rb in foreplay-0.15.2 vs lib/foreplay/engine/remote/step.rb in foreplay-0.15.4
- old
+ new
@@ -21,10 +21,10 @@
def execute_command(command)
o = ''
process = shell.execute command
process.on_output { |_, po| o += po }
shell.wait!
- terminate(o) unless step['ignore_error'] == true || process.exit_status == 0
+ terminate(o) unless step['ignore_error'] == true || process.exit_status.zero?
o
end
def silent?
@silent ||= instructions.key?('verbose') ? false : step['silent']