aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-12-19 20:32:16 +0800
committerXu Cheng2015-12-19 22:05:30 +0800
commit7efae4635be1eec5dad066d2c52616a48f890700 (patch)
tree345d569fcbe53e34c39b1dadcc484437c6528e4f
parent0f84b976bab94d66af1f8eb658b5ca824f8d49d4 (diff)
downloadbrew-7efae4635be1eec5dad066d2c52616a48f890700.tar.bz2
Tap#unpin: remove PinnedTaps directory if it's empty
-rw-r--r--Library/Homebrew/tap.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 59a4429a1..24b7a95ed 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -299,6 +299,7 @@ class Tap
raise TapPinStatusError.new(name, false) unless pinned?
pinned_symlink_path.delete
pinned_symlink_path.parent.rmdir_if_possible
+ pinned_symlink_path.parent.parent.rmdir_if_possible
@pinned = false
end