Skip to content
Browse files

Merge pull request #37 from denofevil/no_stty_when_not_on_tty

do not launch stty when stdout is not tty to prevent error message
  • Loading branch information...
2 parents 3dab5ff + b2e2c75 commit e59b8cc4f26e05c41c39e46c2d75e6c9addd4cda Laurent Sansonetti committed Sep 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/motion/project.rb
View
2 lib/motion/project.rb
@@ -97,7 +97,7 @@
sim = File.join(App.config.bindir, 'sim')
debug = (ENV['debug'] ? 1 : (App.config.spec_mode ? '0' : '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 e59b8cc

Please sign in to comment.
Something went wrong with that request. Please try again.