system_command: fix typo.

This commit is contained in:
Mike McQuaid 2023-02-14 13:02:59 +00:00 committed by GitHub
parent 9ff7ceb563
commit 9725e764f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,13 +164,13 @@ class SystemCommand
end
sig { returns(T::Array[String]) }
def env_previx
def env_prefix
["/usr/bin/env", *env_args]
end
sig { returns(T::Array[String]) }
def command_prefix
sudo? ? sudo_prefix : env_previx
sudo? ? sudo_prefix : env_prefix
end
sig { returns(T::Array[String]) }