mirror of
https://github.com/CryptKeeperZK/ejs.git
synced 2026-01-09 07:27:56 -05:00
Fix wrong output file option in cli
This commit is contained in:
@@ -152,7 +152,7 @@ function run() {
|
||||
|
||||
let template = fs.readFileSync(templatePath).toString();
|
||||
let output = ejs.render(template, vals, opts);
|
||||
if (pOpts.outputFile) {
|
||||
if (pOpts['output-file']) {
|
||||
fs.writeFileSync(pOpts.outputFile, output);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user