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:
parent
27fae8a829
commit
da692fadc6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user