diff options
| author | Max Howell | 2012-03-09 11:59:40 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-09 12:10:50 +0000 |
| commit | bb7a33c296ba6a86bcad49dd6a4a3cb9029d1ecc (patch) | |
| tree | 196a7072d7407c38d5a4c8c096ff368748139bcd | |
| parent | b4bcc6a7991d50250256728149e1728f75628c94 (diff) | |
| download | homebrew-bb7a33c296ba6a86bcad49dd6a4a3cb9029d1ecc.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" |
