Skip to content

Commit

Permalink
daemon: resolve promise
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jan 9, 2024
1 parent 31ce94d commit f139c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7999,7 +7999,7 @@ async function isTrustedUser() {
core.debug(`Trusted users: ${trustedUsers}`);
core.debug(`Trusted groups: ${trustedGroups}`);
// Chech if Nix is installed in single-user mode.
let isStoreWritable = isWritable('/nix/store');
let isStoreWritable = await isWritable('/nix/store');
core.debug(`Is store writable: ${isStoreWritable}`);
return isStoreWritable
|| trustedUsers.includes(user)
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async function isTrustedUser(): Promise<boolean> {
core.debug(`Trusted groups: ${trustedGroups}`);

// Chech if Nix is installed in single-user mode.
let isStoreWritable = isWritable('/nix/store');
let isStoreWritable = await isWritable('/nix/store');
core.debug(`Is store writable: ${isStoreWritable}`);

return isStoreWritable
Expand Down

0 comments on commit f139c58

Please sign in to comment.