Use -s flag in uname call

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Carlo Cabrera 2021-09-10 21:24:05 +08:00 committed by GitHub
parent c90e63b299
commit b0668f4e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ module OS
# @api public
sig { returns(String) }
def self.uname
@uname ||= Utils.safe_popen_read("uname").chomp
@uname ||= Utils.safe_popen_read("uname", "-s").chomp
end
::OS_VERSION = ENV["HOMEBREW_OS_VERSION"]