From 5f7db2b7329584c7e73fad15471e55c54daf3fe2 Mon Sep 17 00:00:00 2001 From: Ilya Kulakov Date: Thu, 21 Dec 2023 01:16:09 -0800 Subject: [PATCH] Fix syntax errors. Co-authored-by: Mike McQuaid --- Library/Homebrew/system_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/system_command.rb b/Library/Homebrew/system_command.rb index c9c9aed345..80ef1e3a9c 100644 --- a/Library/Homebrew/system_command.rb +++ b/Library/Homebrew/system_command.rb @@ -191,7 +191,7 @@ class SystemCommand "-E", *env_args, "--", "/usr/bin/sudo"] end - user_flags += sudo_as_root? ? ["-u", "root"] : [] + user_flags += ["-u", "root"] if sudo_as_root? ["/usr/bin/sudo", *user_flags, *askpass_flags, "-E", *env_args, "--"] end