From 5473c127e276b7a2957d745bb7e7859b7307c2a5 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Fri, 2 Sep 2022 15:02:33 -0700 Subject: [PATCH] fix: md5hashes file not using sysroot when displaying file location --- src/commands/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/install.ts b/src/commands/install.ts index a30ac34..3f5747c 100644 --- a/src/commands/install.ts +++ b/src/commands/install.ts @@ -65,7 +65,7 @@ export default class Install { if (file.endsWith('.WAHINFO')) continue; const readFile = await fs.promises.readFile(file); const hash = crypto.createHash('md5').update(readFile).digest('hex'); - toWriteToFile += `${file.replace(`${makeExtractDir}/ROOT`, '')} ${hash}\n`; + toWriteToFile += `${file.replace(`${makeExtractDir}/ROOT`, this.options.sysroot)} ${hash}\n`; } await md5Adapter.write(toWriteToFile);