From e337e7a07f3562cf663ea3d6519b92dc732daf20 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sat, 21 Oct 2023 17:12:36 +0900 Subject: [PATCH] fix: canSkipSeed() --- packages/shared-lib-node/src/hash.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/shared-lib-node/src/hash.ts b/packages/shared-lib-node/src/hash.ts index 10cc54eb..8e660969 100644 --- a/packages/shared-lib-node/src/hash.ts +++ b/packages/shared-lib-node/src/hash.ts @@ -11,8 +11,7 @@ import path from 'node:path'; */ export async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise { return ( - !!Number(process.env.ALLOW_TO_SKIP_SEED) || - (process.env.ALLOW_TO_SKIP_SEED || '').toLowerCase() === 'true' || + (!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED || '').toLowerCase() === 'true') && !(await updateHashFromFiles(hashFilePath, ...paths)) ); }