aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install_homebrew.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb
index ee2042ab0..d8c28560c 100644
--- a/install_homebrew.rb
+++ b/install_homebrew.rb
@@ -102,9 +102,11 @@ unless chgrps.empty?
puts *chgrps
end
-puts
-puts "Press enter to continue"
-abort unless getc == 13
+if STDIN.tty?
+ puts
+ puts "Press enter to continue"
+ abort unless getc == 13
+end
if File.directory? "/usr/local"
sudo "/bin/chmod", "g+w", *chmods unless chmods.empty?