Warn that sudo is required to explain password prompt.
This commit is contained in:
parent
ea2eab7b69
commit
c6047e1683
1 changed files with 2 additions and 1 deletions
|
|
@ -1140,8 +1140,9 @@ def check_arguments():
|
||||||
os.environ["ERIS_CONFIG"] = config_path
|
os.environ["ERIS_CONFIG"] = config_path
|
||||||
import eris.tools as tools
|
import eris.tools as tools
|
||||||
if arguments["--apt-install-tools"]:
|
if arguments["--apt-install-tools"]:
|
||||||
|
print("Installing all tools… (requires sudo)")
|
||||||
subprocess.run(["sudo", "apt", "-y", "install"] + sorted(tools.dependencies()), check=True)
|
subprocess.run(["sudo", "apt", "-y", "install"] + sorted(tools.dependencies()), check=True)
|
||||||
print("Installed all tools.")
|
print("Done.")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if arguments["--info"]:
|
if arguments["--info"]:
|
||||||
print_tool_info()
|
print_tool_info()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue