diff options
| author | Xu Cheng | 2015-12-19 20:32:16 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-12-19 22:05:30 +0800 |
| commit | 7efae4635be1eec5dad066d2c52616a48f890700 (patch) | |
| tree | 345d569fcbe53e34c39b1dadcc484437c6528e4f /Library/Homebrew | |
| parent | 0f84b976bab94d66af1f8eb658b5ca824f8d49d4 (diff) | |
| download | brew-7efae4635be1eec5dad066d2c52616a48f890700.tar.bz2 | |
Tap#unpin: remove PinnedTaps directory if it's empty
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/tap.rb | 1 |
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 |
