1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

clean up whitespace on daemon args

cause less errors if any trailing whitespace removed,
This commit is contained in:
Dave Conway-Jones 2016-08-16 10:12:31 +01:00
parent ba488aa4c1
commit eb17e6533e
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ module.exports = function(RED) {
function DaemonNode(n) { function DaemonNode(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.cmd = n.command; this.cmd = n.command;
this.args = n.args.split(" ") || []; this.args = n.args.trim().split(" ") || [];
this.cr = n.cr; this.cr = n.cr;
this.op = n.op; this.op = n.op;
this.redo = n.redo; this.redo = n.redo;

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-daemon", "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.", "description" : "A Node-RED node that runs and monitors a long running system command.",
"dependencies" : { "dependencies" : {
}, },