Skip to content

Commit 7d87dcd

Browse files
author
Niall O'Higgins
committed
guard against empty command
1 parent 38256c1 commit 7d87dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var fs = require('fs')
33
var path = require('path')
44

55
function shellCommand(command) {
6-
if (!command.replace(/#[^\n]*/g, '').trim().length) return
6+
if (!command || !command.replace(/#[^\n]*/g, '').trim().length) return
77
return {
88
command: 'sh',
99
args: ['-x', '-c', command]

0 commit comments

Comments
 (0)