aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-10-28 12:30:52 -0700
committerCharlie Sharpsteen2012-10-28 12:34:43 -0700
commit376fa599015f949a3eb5cd5afd2ebc4ae32be155 (patch)
tree0785d945caf6897c93427f12f84a4fef54665229 /Library
parent1b991c5aaea0563ad2e4889fa9a6552de76e89be (diff)
downloadbrew-376fa599015f949a3eb5cd5afd2ebc4ae32be155.tar.bz2
brew-update: Guard non-directory files in Taps
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not directories.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index c15dfa042..8b2d2e3d4 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -19,6 +19,8 @@ module Homebrew extend self
new_files = []
Dir["Library/Taps/*"].each do |tapd|
+ next unless File.directory?(tapd)
+
cd tapd do
begin
updater = Updater.new