diff --git a/server/core/InpxHashCreator.js b/server/core/InpxHashCreator.js index 26a9b5f..35460da 100644 --- a/server/core/InpxHashCreator.js +++ b/server/core/InpxHashCreator.js @@ -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') : + '' + ); } }