Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yurks committed Feb 27, 2021
1 parent 556419e commit 316403f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ function wkhtmltopdf(input, options, callback) {
if (process.platform === 'win32') {
var child = spawn(args[0], args.slice(1));
} else if (process.platform === 'darwin') {
var child = spawn('/bin/sh', ['-c', 'set -o pipefail ; ' + args.join(' ') + ' | cat']); } else {
var child = spawn('/bin/sh', ['-c', 'set -o pipefail ; ' + args.join(' ') + ' | cat']);
} else {
// this nasty business prevents piping problems on linux
// The return code should be that of wkhtmltopdf and not of cat
// http://stackoverflow.com/a/18295541/1705056
Expand Down

0 comments on commit 316403f

Please sign in to comment.