aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 141164650..507c2e560 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -259,11 +259,14 @@ class Formula
yield self
rescue Interrupt, RuntimeError, SystemCallError => e
unless ARGV.debug?
+ logs = File.expand_path '~/Library/Logs/Homebrew/'
if File.exist? 'config.log'
- logs = File.expand_path '~/Library/Logs/Homebrew/'
mkdir_p logs
- cp 'config.log', logs
+ mv 'config.log', logs
end
+ if File.exist? 'CMakeLists.txt'
+ mkdir_p logs
+ mv 'CMakeLists.txt', logs
raise
end
onoe e.inspect