diff options
| author | Max Howell | 2012-03-09 11:59:40 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-09 12:10:50 +0000 |
| commit | dfa75f9230f75060a693add842fcdc5648398c69 (patch) | |
| tree | 196a7072d7407c38d5a4c8c096ff368748139bcd | |
| parent | 98ec342ecc597d0bb2806fbd2a5fafb796caf8ed (diff) | |
| download | brew-dfa75f9230f75060a693add842fcdc5648398c69.tar.bz2 | |
Allow "Press Enter" to be a \r
Some wrapper-tools push \r rather than \n and break the installer.
| -rw-r--r-- | install_homebrew.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb index f17036a14..df3a017e4 100644 --- a/install_homebrew.rb +++ b/install_homebrew.rb @@ -106,7 +106,9 @@ end if STDIN.tty? puts puts "Press enter to continue" - abort unless getc == 13 + c = getc + # we test for \r and \n because some stuff does \r instead + abort unless c == 13 or c == 10 end if File.directory? "/usr/local" |
