Skip to content

Commit

Permalink
fix transition handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rse committed Oct 26, 2019
1 parent b0a7846 commit 8b3f3f7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions psd2pptx.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,18 @@ const zipProcess = require("zip-process")
}
}
})
}

/* write output file */
let pptxname = (argv.output !== "" ? argv.output : `${basename}.pptx`)
verbose(`writing PPTX file: ${chalk.blue(pptxname)}`)
fs.writeFileSync(pptxname, out)
/* write output file */
let pptxname = (argv.output !== "" ? argv.output : `${basename}.pptx`)
verbose(`writing PPTX file: ${chalk.blue(pptxname)}`)
fs.writeFileSync(pptxname, out)
}
else {
/* write output file */
let pptxname = (argv.output !== "" ? argv.output : `${basename}.pptx`)
verbose(`writing PPTX file: ${chalk.blue(pptxname)}`)
fs.copyFileSync(pptxfile, pptxname)
}

/* delete temporary filesystem area */
tmpdir.removeCallback()
Expand Down

0 comments on commit 8b3f3f7

Please sign in to comment.