Update processes.js
fix spacing
This commit is contained in:
parent
7b8fa912f6
commit
316a002fba
@ -324,15 +324,15 @@ function services(srv, callback) {
|
|||||||
}
|
}
|
||||||
if (_windows) {
|
if (_windows) {
|
||||||
try {
|
try {
|
||||||
let wincommand = "Get-WmiObject Win32_Service ";
|
let wincommand = "Get-WmiObject Win32_Service";
|
||||||
if (srvs[0] !== '*') {
|
if (srvs[0] !== '*') {
|
||||||
wincommand += '-Filter "';
|
wincommand += ' -Filter "';
|
||||||
for (let i = 0; i < srvs.length; i++) {
|
for (let i = 0; i < srvs.length; i++) {
|
||||||
wincommand += `Name='${srvs[i]}' or `;
|
wincommand += `Name='${srvs[i]}' or `;
|
||||||
}
|
}
|
||||||
wincommand = `${wincommand.slice(0,-4)}"`;
|
wincommand = `${wincommand.slice(0,-4)}"`;
|
||||||
}
|
}
|
||||||
wincommand += '| fl *';
|
wincommand += ' | fl *';
|
||||||
util.powerShell(wincommand).then((stdout, error) => {
|
util.powerShell(wincommand).then((stdout, error) => {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
let serviceSections = stdout.split(/\n\s*\n/);
|
let serviceSections = stdout.split(/\n\s*\n/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user