Skip to content

Commit 161c1f6

Browse files
committed
Use uid not username
1 parent 0e5b724 commit 161c1f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ class NixInstallerAction {
631631

632632
private async setup_kvm(): Promise<boolean> {
633633
const current_user = userInfo();
634-
const is_root = current_user.username === "root";
634+
const is_root = current_user.uid === 0;
635635
const maybe_sudo = is_root ? "sudo" : "";
636636

637637
const kvm_rules =

0 commit comments

Comments
 (0)