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

Merged
merged 1 commit into from Sep 26, 2012

Conversation

Projects
None yet
2 participants
Contributor

denofevil commented Sep 13, 2012

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 pushed a commit that referenced this pull request Sep 26, 2012

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

@lrz lrz merged commit e59b8cc into HipByte:master Sep 26, 2012

Owner

lrz commented Sep 26, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment