Skip to content

Commit

Permalink
Added support for daemonDir
Browse files Browse the repository at this point in the history
based on hosseinpro  comments
coreybutler#269
  • Loading branch information
scheppsr77 committed Jul 1, 2021
1 parent bfe0b50 commit 33eceb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ var daemon = function(config){
enumerable: false,
writable: true,
configurable: false,
value: config.script !== null ? path.dirname(config.script) : null
//value: config.script !== null ? path.dirname(config.script) : null
value: config.daemonDir !==null ? path.dirname(config.daemonDir) : config.script !== null ? path.dirname(config.script) : null
},

/**
Expand Down

0 comments on commit 33eceb2

Please sign in to comment.