Don't chmod -R 0777 before uninstalling

If the user owns the parent directory we have the rights to rmtree. At least I believe so.

Fixes Homebrew/homebrew#13714.
This commit is contained in:
Max Howell 2012-08-06 18:49:14 -04:00
parent 27fae8a829
commit da692fadc6

View File

@ -22,7 +22,6 @@ class Keg < Pathname
end
def uninstall
chmod_R 0777 # ensure we have permission to delete
rmtree
parent.rmdir_if_possible
end