Obtain username in root, since cwd might not exist.
This commit is contained in:
parent
d46f45debc
commit
4c75eb34c4
1 changed files with 1 additions and 1 deletions
|
@ -91,4 +91,4 @@ def run_with_tee(session: Session, args: List[str], **kwargs):
|
|||
|
||||
|
||||
def get_user(session):
|
||||
return session.check_output(["echo", "$USER"]).decode().strip()
|
||||
return session.check_output(["echo", "$USER"], cwd="/").decode().strip()
|
||||
|
|
Loading…
Add table
Reference in a new issue