From cfa22baf9c50c537a358e3103148c2364d6247a8 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 21 Jun 2019 17:43:27 -0700 Subject: [PATCH] fixed indentation --- modules/service-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/service-manager.js b/modules/service-manager.js index 7befc81..217a5b7 100644 --- a/modules/service-manager.js +++ b/modules/service-manager.js @@ -729,7 +729,7 @@ function serviceManager() ret.appLocation = function appLocation() { var child = require('child_process').execFile('/bin/sh', ['sh']); - child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); }); + child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); }); child.stdin.write("cat " + this.rc + " | grep command= | awk -F= '{ print $2 }' | awk -F\\\" '{ print $2 }'\nexit\n"); child.waitExit(); return (child.stdout.str.trim().split('${name}').join(this.name));