Поправил баг

This commit is contained in:
Book Pauk
2022-10-15 21:04:56 +07:00
parent 9aa9261b6a
commit 8aab918ac5

View File

@@ -25,7 +25,11 @@ class InpxHashCreator {
}
async getInpxFileHash() {
return await utils.getFileHash(this.config.inpxFile, 'sha256', 'hex');
return (
await fs.pathExists(this.config.inpxFile) ?
await utils.getFileHash(this.config.inpxFile, 'sha256', 'hex') :
''
);
}
}