Skip to content
Snippets Groups Projects
Commit f9fd0168 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

set PATH

parent 9ab7a072
No related branches found
No related tags found
No related merge requests found
......@@ -29,18 +29,15 @@ def main():
!= 0
):
result = run(
[
"/usr/bin/apt-get",
"install",
"-q",
"-y",
pkg,
],
["/usr/bin/apt-get", "install", "-q", "-y", pkg],
shell=False,
stdout=PIPE,
stderr=STDOUT,
stdin=PIPE,
env={"DEBIAN_FRONTEND": "noninteractive"},
env={
"DEBIAN_FRONTEND": "noninteractive",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
},
)
if result.returncode == 0:
print("{} install succeeded".format(pkg))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment