Skip to content

Commit 11a95a7

Browse files
committed
daemon: resolve promise
1 parent 608ce1e commit 11a95a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7999,7 +7999,7 @@ async function isTrustedUser() {
79997999
core.debug(`Trusted users: ${trustedUsers}`);
80008000
core.debug(`Trusted groups: ${trustedGroups}`);
80018001
// Chech if Nix is installed in single-user mode.
8002-
let isStoreWritable = isWritable('/nix/store');
8002+
let isStoreWritable = await isWritable('/nix/store');
80038003
core.debug(`Is store writable: ${isStoreWritable}`);
80048004
return isStoreWritable
80058005
|| trustedUsers.includes(user)

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ async function isTrustedUser(): Promise<boolean> {
319319
core.debug(`Trusted groups: ${trustedGroups}`);
320320

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

325325
return isStoreWritable

0 commit comments

Comments
 (0)