Skip to content

Instantly share code, notes, and snippets.

@zunda
Created March 10, 2014 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zunda/9459138 to your computer and use it in GitHub Desktop.
Save zunda/9459138 to your computer and use it in GitHub Desktop.
A patch to Homebrew to preserve source tree
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 7037748..b10b97c 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -21,7 +21,7 @@ module FileUtils extend self
yield
ensure
cd prevd if prevd
- ignore_interrupts{ rm_r tempd } if tempd
+ $stderr.puts "Remove #{tempd} if everything went alright" if tempd
end
# A version of mkdir that also changes to that folder in a block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment