Carlo Cabrera 2023-05-08 21:07:03 +08:00
parent 1120812378
commit 071f6069d2
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module Utils
undef tag
def tag(symbol = nil)
return Utils::Bottles::Tag.from_symbol(symbol) if symbol.present?
return Utils::Bottles::Tag.from_symbol(symbol.to_sym) if symbol.present?
Utils::Bottles::Tag.new(system: MacOS.version.to_sym, arch: Hardware::CPU.arch)
end

View File

@ -11,7 +11,7 @@ module Utils
class << self
# Gets the tag for the running OS.
def tag(symbol = nil)
return Tag.from_symbol(symbol) if symbol.present?
return Tag.from_symbol(symbol.to_sym) if symbol.present?
@tag ||= Tag.new(system: HOMEBREW_SYSTEM.downcase.to_sym,
arch: HOMEBREW_PROCESSOR.downcase.to_sym)