Permalink
Browse files

do not launch stty when stdout is not tty to prevent error message

  • Loading branch information...
1 parent ba69a27 commit b2e2c75681487a93c1aa7fa89c423d73ad777d3b @denofevil committed Sep 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/motion/project.rb
View
@@ -98,7 +98,7 @@
debug = (ENV['debug'] || (App.config.spec_mode ? '0' : '2')).to_i
debug = 2 if debug < 0 or debug > 2
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}\""
end

0 comments on commit b2e2c75

Please sign in to comment.