From f139c58523a879ad7d3267f16879bea17bab8439 Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 9 Jan 2024 23:43:12 +0000 Subject: [PATCH] daemon: resolve promise --- dist/main/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index cf4deb5b..55bb6a2e 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -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) diff --git a/src/main.ts b/src/main.ts index 95255a59..f093d101 100644 --- a/src/main.ts +++ b/src/main.ts @@ -319,7 +319,7 @@ async function isTrustedUser(): Promise { 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