Skip to content

Commit

Permalink
fix: wrap path with quotations (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjscott authored Jan 19, 2020
1 parent d06fea2 commit 6ebf743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function buildArgs (input, output, { width, height, percentage }, seek) {
* @returns {Promise} Promise that resolves once thumbnail is generated
*/
function ffmpegExecute (path, args, rstream, wstream) {
const ffmpeg = spawn(path, args, { shell: true })
const ffmpeg = spawn(`"${path}"`, args, { shell: true })
let stderr = ''

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 6ebf743

Please sign in to comment.