Skip to content

Commit

Permalink
Merge pull request #15 from warling/master
Browse files Browse the repository at this point in the history
Fix daemon directory path for Node 6.x. Closes #14.
  • Loading branch information
coreybutler committed Aug 25, 2016
2 parents 371d1da + 436f12c commit 8fed3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var daemon = function(config) {
enumerable: false,
writable: true,
configurable: false,
value: config.cwd || p.dirname(this.script)
value: config.cwd || p.dirname( ( this.script === undefined ) || ( this.script === null ) ) ? '' : this.script.toString() )
},

/**
Expand Down

0 comments on commit 8fed3d1

Please sign in to comment.