Skip to content

Commit

Permalink
Use sudo -v
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Jan 13, 2023
1 parent aebd5fd commit 3d389c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mybox/driver.py
Expand Up @@ -252,9 +252,9 @@ async def run_(
) -> RunResult:
if args and args[0] == "sudo":
# If the sudo prompt is needed, avoid drawing a progress bar over it
# with first prompting for a no-op command.
# by authenticating the user first.
async with TERMINAL_LOCK:
await super().run("sudo", "true")
await super().run("sudo", "-v")
return await super().run_(
*args,
check=check,
Expand Down

0 comments on commit 3d389c5

Please sign in to comment.