Fix sudo Docker build (#18736)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
f777b63c8b
commit
3672cb160e
1 changed files with 1 additions and 1 deletions
|
|
@ -791,7 +791,7 @@ def is_sudo_available() -> bool:
|
||||||
"""
|
"""
|
||||||
if WINDOWS:
|
if WINDOWS:
|
||||||
return False
|
return False
|
||||||
return subprocess.run(["sudo", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0
|
subprocess.run("sudo --version", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0
|
||||||
|
|
||||||
|
|
||||||
# Run checks and define constants
|
# Run checks and define constants
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue