From eb17e6533e287d63798c9a35c9db770175a7d516 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 16 Aug 2016 10:12:31 +0100 Subject: [PATCH] clean up whitespace on daemon args cause less errors if any trailing whitespace removed, --- utility/daemon/daemon.js | 2 +- utility/daemon/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" : { },