Skip to content

Commit

Permalink
do not launch stty when stdout is not tty to prevent error message
Browse files Browse the repository at this point in the history
  • Loading branch information
denofevil committed Sep 13, 2012
1 parent ba69a27 commit b2e2c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/motion/project.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
debug = (ENV['debug'] || (App.config.spec_mode ? '0' : '2')).to_i debug = (ENV['debug'] || (App.config.spec_mode ? '0' : '2')).to_i
debug = 2 if debug < 0 or debug > 2 debug = 2 if debug < 0 or debug > 2
App.info 'Simulate', app App.info 'Simulate', app
at_exit { system("stty echo") } # Just in case the simulator launcher crashes and leaves the terminal without echo. at_exit { system("stty echo") } if $stdout.tty? # Just in case the simulator launcher crashes and leaves the terminal without echo.
sh "#{env} #{sim} #{debug} #{family_int} #{target} \"#{xcode}\" \"#{app}\"" sh "#{env} #{sim} #{debug} #{family_int} #{target} \"#{xcode}\" \"#{app}\""
end end


Expand Down

0 comments on commit b2e2c75

Please sign in to comment.