From b0668f4e312c4890972768915233a56fc395e691 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 10 Sep 2021 21:24:05 +0800 Subject: [PATCH] Use `-s` flag in `uname` call Co-authored-by: Mike McQuaid --- Library/Homebrew/os.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb index 17e9076dca..34c0db2286 100644 --- a/Library/Homebrew/os.rb +++ b/Library/Homebrew/os.rb @@ -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"]