diff --git a/utility/daemon/daemon.js b/utility/daemon/daemon.js index 706008ae..6282c345 100644 --- a/utility/daemon/daemon.js +++ b/utility/daemon/daemon.js @@ -21,7 +21,7 @@ module.exports = function(RED) { function DaemonNode(n) { RED.nodes.createNode(this,n); this.cmd = n.command; - this.args = n.args.split(" ") || []; + this.args = n.args.trim().split(" ") || []; this.cr = n.cr; this.op = n.op; this.redo = n.redo; diff --git a/utility/daemon/package.json b/utility/daemon/package.json index 1fa994b3..987d1d02 100644 --- a/utility/daemon/package.json +++ b/utility/daemon/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-daemon", - "version" : "0.0.5", + "version" : "0.0.6", "description" : "A Node-RED node that runs and monitors a long running system command.", "dependencies" : { },