From f390792452b84abbd8a918130ea530afc118110b Mon Sep 17 00:00:00 2001 From: Robin Moisson Date: Sat, 23 Apr 2022 19:56:59 +0200 Subject: [PATCH] fix path for config file + patch bump --- cli/index.js | 2 +- cli/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/index.js b/cli/index.js index ca66880..1098b2b 100755 --- a/cli/index.js +++ b/cli/index.js @@ -171,7 +171,7 @@ if (namedArgs._.length !== 2) { // get config file const isUsingconfigFile = namedArgs.config.toLowerCase() !== 'false'; -const configPath = path.join(__dirname, namedArgs.config); +const configPath = './' + namedArgs.config; let config = {}; if (isUsingconfigFile && fs.existsSync(configPath)) { config = JSON.parse(fs.readFileSync(configPath, 'utf8')); diff --git a/cli/package.json b/cli/package.json index bc1a299..e3b02dd 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "staticrypt", - "version": "2.1.0", + "version": "2.1.1", "description": "Based on the [crypto-js](https://github.com/brix/crypto-js) library, StatiCrypt uses AES-256 to encrypt your input with your passphrase and put it in a HTML file with a password prompt that can decrypted in-browser (client side).", "main": "index.js", "bin": {