fastlane/lib/fastlane/actions/prompt.rb in fastlane-2.116.0 vs fastlane/lib/fastlane/actions/prompt.rb in fastlane-2.116.1

- old
+ new

@@ -15,10 +15,11 @@ # Multi line end_tag = params[:multi_line_end_keyword] UI.important("Submit inputs using \"#{params[:multi_line_end_keyword]}\"") user_input = "" loop do - line = STDIN.gets + line = STDIN.gets # returns `nil` if called at end of file + break unless line end_tag_index = line.index(end_tag) if end_tag_index.nil? user_input << line else user_input << line.slice(0, end_tag_index)