Skip to content

Commit e54584f

Browse files
authored
Update daemon.js
1 parent c7b7a2b commit e54584f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ var daemon = function(config){
427427
enumerable: false,
428428
writable: true,
429429
configurable: false,
430-
value: config.hasOwnProperty('workingDirectory') || process.cwd()
430+
value: config.hasOwnProperty('workingDirectory') ? config.workingDirectory : process.cwd()
431431
},
432432

433433
// Optionally provide a sudo password.

0 commit comments

Comments
 (0)