Skip to content

Commit

Permalink
fix: wrong prince image name
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed May 18, 2022
1 parent fd552f0 commit 683f2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -106,7 +106,7 @@ async function generatePdf(list, filename) {
const args = argv.princeArgs || '';

const princeCmd = argv.princeDocker
? `docker run --rm -i -v ${__dirname}:/config sparanoid/prince:local --no-warn-css --style=/config/print.css --input-list=/config/${list} -o /config/${filename} ${args}`
? `docker run --rm -i -v ${__dirname}:/config sparanoid/prince --no-warn-css --style=/config/print.css --input-list=/config/${list} -o /config/${filename} ${args}`
: `prince --no-warn-css --style=${__dirname}print.css --input-list=${list} -o ${filename} ${args}`;
console.log(`Executing command: ${princeCmd}`);
await execute(princeCmd).then(resp => {
Expand Down

0 comments on commit 683f2f0

Please sign in to comment.