Skip to content

Commit

Permalink
Fix invoked_as_root initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed May 29, 2024
1 parent f6a4b69 commit 17010a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class INVOKING_USER:
uid = int(os.getenv("SUDO_UID") or os.getenv("PKEXEC_UID") or os.getuid())
gid = int(os.getenv("SUDO_GID") or os.getgid())
invoked_as_root = uid == 0
invoked_as_root = os.getuid() == 0

@classmethod
def init(cls) -> None:
Expand Down

0 comments on commit 17010a2

Please sign in to comment.