diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb index 6a05a7aeb1..8447f24726 100644 --- a/Library/Homebrew/utils/bottles.rb +++ b/Library/Homebrew/utils/bottles.rb @@ -25,7 +25,7 @@ module Utils end def native_regex - /(\.#{Regexp.escape(tag)}\.bottle\.(\d+\.)?tar\.gz)$/o + /(\.#{Regexp.escape(tag.to_s)}\.bottle\.(\d+\.)?tar\.gz)$/o end def receipt_path(bottle_file)