Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@denofevil

Currently stty command is launched at rake script end unconditionally, resulting in error message

stty: stdin isn't a terminal

when executing rake from another process or when using pipe to pass it's output to some other command.
This patch makes it run stty only if stdout is tty

@lrz lrz merged commit e59b8cc into HipByte:master
@lrz
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/motion/project.rb
View
2  lib/motion/project.rb
@@ -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
Something went wrong with that request. Please try again.