From 0d19e2be9e0c71c2bafe6994ae6d11c9510616aa Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 25 Nov 2012 13:03:13 +0000 Subject: [PATCH] brew-test-bot: don't cleanup HOMEBREW_PREFIX. --- Library/Contributions/cmds/brew-test-bot.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb index 046c1ede41..6d044970f7 100755 --- a/Library/Contributions/cmds/brew-test-bot.rb +++ b/Library/Contributions/cmds/brew-test-bot.rb @@ -305,6 +305,10 @@ class Test end end +if Pathname.pwd == HOMEBREW_PREFIX and ARGV.include? "--cleanup" + odie 'cannot use --cleanup from HOMEBREW_PREFIX as it will delete all output.' +end + if ARGV.named.empty? # With no arguments just build the most recent commit. Test.run 'HEAD'