spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.51.0 vs spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.52.0.beta.20170808010002
- old
+ new
@@ -84,9 +84,15 @@
puts ""
teams.each_with_index do |team, i|
puts "#{i + 1}) \"#{team['contentProvider']['name']}\" (#{team['contentProvider']['contentProviderId']})"
end
+ unless Spaceship::Client::UserInterface.interactive?
+ puts "Multiple teams found on iTunes Connect, Your Terminal is running in non-interactive mode! Cannot continue from here."
+ puts "Please check that you set FASTLANE_ITC_TEAM_ID or FASTLANE_ITC_TEAM_NAME to the right value."
+ raise "Multiple iTunes Connect Teams found; unable to choose, terminal not ineractive!"
+ end
+
selected = ($stdin.gets || '').strip.to_i - 1
team_to_use = teams[selected] if selected >= 0
if team_to_use
self.team_id = team_to_use['contentProvider']['contentProviderId'].to_s # actually set the team id here