Update processes.js

fix spacing
This commit is contained in:
Simon Smith 2022-01-15 15:15:26 +00:00 committed by GitHub
parent 7b8fa912f6
commit 316a002fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,15 +324,15 @@ function services(srv, callback) {
}
if (_windows) {
try {
let wincommand = "Get-WmiObject Win32_Service ";
let wincommand = "Get-WmiObject Win32_Service";
if (srvs[0] !== '*') {
wincommand += '-Filter "';
wincommand += ' -Filter "';
for (let i = 0; i < srvs.length; i++) {
wincommand += `Name='${srvs[i]}' or `;
}
wincommand = `${wincommand.slice(0,-4)}"`;
}
wincommand += '| fl *';
wincommand += ' | fl *';
util.powerShell(wincommand).then((stdout, error) => {
if (!error) {
let serviceSections = stdout.split(/\n\s*\n/);