From 43c8223dcc0660852be56a5296d515a1a52a2784 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 21 Jul 2017 17:20:12 +0100 Subject: [PATCH] =?UTF-8?q?formula:=20ensure=20aliases=20don=E2=80=99t=20i?= =?UTF-8?q?nclude=20full=20names.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aliases that include `/`s end up creating directories and this is bad. --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b2e4ff9889..939f356da4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -383,7 +383,9 @@ class Formula # All of aliases for the formula def aliases @aliases ||= if tap - tap.alias_reverse_table[full_name] || [] + tap.alias_reverse_table[full_name].to_a.map do |a| + a.split("/")[-1] + end else [] end