Archived
0
0
Fork 0

fix: md5hashes file not using sysroot when displaying file location

This commit is contained in:
Daryl Ronningen 2022-09-02 15:02:33 -07:00
parent 170bf86992
commit 5473c127e2
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -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);