From 1555edf4d6d16901abfebaabcd5a99bee756ffef Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 5 Sep 2015 14:08:26 +0800 Subject: [PATCH] readall: add --aliases --- Library/Homebrew/cmd/readall.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb index 175d7787c7..df8644b832 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