aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-09-05 14:08:26 +0800
committerXu Cheng2015-09-06 20:15:37 +0800
commit1555edf4d6d16901abfebaabcd5a99bee756ffef (patch)
treee491c9604fdd81e318c9612ac533c236aeaf51e2 /Library/Homebrew
parent818c65542d2bb57ba01959f1bedfddf0b4cf3be5 (diff)
downloadbrew-1555edf4d6d16901abfebaabcd5a99bee756ffef.tar.bz2
readall: add --aliases
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/readall.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index 175d7787c..df8644b83 100644
--- a/Library/Homebrew/cmd/readall.rb
+++ b/Library/Homebrew/cmd/readall.rb
@@ -31,6 +31,15 @@ module Homebrew
Homebrew.failed = failed
end
+ if ARGV.delete("--aliases")
+ Pathname.glob("#{HOMEBREW_LIBRARY}/Aliases/*").each do |f|
+ next unless f.symlink?
+ next if f.file?
+ onoe "Broken alias: #{f}"
+ Homebrew.failed = true
+ end
+ end
+
formulae = []
if ARGV.named.empty?
formulae = Formula.files