From c1b87a9e3208c048574b55d44b5be3b2eb18bce8 Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Wed, 25 Sep 2024 14:51:40 +0200 Subject: [PATCH] Fix bank letter script not working from the root directory like all other scripts. --- examples/bankLetter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bankLetter.js b/examples/bankLetter.js index 3963e35..5ad99a4 100755 --- a/examples/bankLetter.js +++ b/examples/bankLetter.js @@ -10,7 +10,7 @@ const os = require('os'); const config = require('./loadConfig')(); const client = require('./getClient')(config); const bankName = client.bankName; -const template = fs.readFileSync("../templates/ini_"+client.languageCode+".hbs", { encoding: 'utf8'}); +const template = fs.readFileSync("./templates/ini_"+client.languageCode+".hbs", { encoding: 'utf8'}); const bankLetterFile = path.join("./", "bankLetter_"+client.bankShortName+"_"+client.languageCode+".html"); const letter = new ebics.BankLetter({ client, bankName, template });