Allow "Press Enter" to be a \r

Some wrapper-tools push \r rather than \n and break the installer.
This commit is contained in:
Max Howell 2012-03-09 11:59:40 +00:00
parent 98ec342ecc
commit dfa75f9230

View File

@ -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"