dev-cmd/typecheck: use EUID with sorbet
This commit is contained in:
parent
96878e869d
commit
27ca946c06
@ -43,6 +43,9 @@ module Homebrew
|
|||||||
groups = update ? Homebrew.valid_gem_groups : ["typecheck"]
|
groups = update ? Homebrew.valid_gem_groups : ["typecheck"]
|
||||||
Homebrew.install_bundler_gems!(groups:)
|
Homebrew.install_bundler_gems!(groups:)
|
||||||
|
|
||||||
|
# Sorbet doesn't use bash privileged mode so we align EUID and UID here.
|
||||||
|
Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid
|
||||||
|
|
||||||
HOMEBREW_LIBRARY_PATH.cd do
|
HOMEBREW_LIBRARY_PATH.cd do
|
||||||
if update
|
if update
|
||||||
safe_system "bundle", "exec", "tapioca", "dsl"
|
safe_system "bundle", "exec", "tapioca", "dsl"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user