Skip to content

Commit 316403f

Browse files
committed
typo
1 parent 556419e commit 316403f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ function wkhtmltopdf(input, options, callback) {
9797
if (process.platform === 'win32') {
9898
var child = spawn(args[0], args.slice(1));
9999
} else if (process.platform === 'darwin') {
100-
var child = spawn('/bin/sh', ['-c', 'set -o pipefail ; ' + args.join(' ') + ' | cat']); } else {
100+
var child = spawn('/bin/sh', ['-c', 'set -o pipefail ; ' + args.join(' ') + ' | cat']);
101+
} else {
101102
// this nasty business prevents piping problems on linux
102103
// The return code should be that of wkhtmltopdf and not of cat
103104
// http://stackoverflow.com/a/18295541/1705056

0 commit comments

Comments
 (0)