lib/right_chimp/Chimp.rb in right_chimp-2.1.21 vs lib/right_chimp/Chimp.rb in right_chimp-2.1.22

- old
+ new

@@ -1009,9 +1009,18 @@ while true puts "(R)etry failed jobs" puts "(A)bort chimp run" puts "(I)gnore errors and continue" command = gets() + if command.nil? + # + # if command is nil, stdin is closed or its source ended + # probably because we are in an automated environment, + # then we pause like in '--no-prompt' scenario + # + puts 'Warning! stdin empty, using pause behaviour, use --no-prompt to avoid this message' + return 'pause' + end if command =~ /^a/i puts "Aborting!" exit 1 elsif command =~ /^i/i