Allow "Press Enter" to be a \r
Some wrapper-tools push \r rather than \n and break the installer.
This commit is contained in:
parent
98ec342ecc
commit
dfa75f9230
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user