diff options
| author | Max Howell | 2009-06-08 15:59:31 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-08 15:59:31 +0100 |
| commit | 1eb83f5ea00e7508fb6354dbdaaedda34168274b (patch) | |
| tree | b76d19df4df976057d5fa6e222403483d2ae170c /bin | |
| parent | 75285fc2423f42759c2a403a95173bd05c2a72be (diff) | |
| download | homebrew-1eb83f5ea00e7508fb6354dbdaaedda34168274b.tar.bz2 | |
--interactive mode during install
Starts a bash prompt in the uncompressed build directory
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -216,9 +216,14 @@ begin raise "#{o.prefix} already exists!" if o.prefix.exist? o.prefix.mkpath o.brew do - o.install - ['README','ChangeLog','COPYING','AUTHORS'].each do |file| - FileUtils.cp file, o.prefix if File.file? file + if ARGV.include? '--interactive' + ohai "Entering interactive mode, type `exit' to return to this shell" + exec "bash" + else + o.install + ['README','ChangeLog','COPYING','COPYRIGHT','AUTHORS'].each do |file| + FileUtils.cp file, o.prefix if File.file? file + end end end ohai 'Finishing up' |
