powerShell() fixed error handling (windows)
This commit is contained in:
parent
3e01751f28
commit
c560a62e9f
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.14.14 | 2019-10-18 | `powerShell()` fixed error handling (windows) |
|
||||||
| 4.14.13 | 2019-10-15 | `networkConnections()` fixed parsing (linux) |
|
| 4.14.13 | 2019-10-15 | `networkConnections()` fixed parsing (linux) |
|
||||||
| 4.14.12 | 2019-10-14 | `getCpu()` fixed multi socket detection (linux) |
|
| 4.14.12 | 2019-10-14 | `getCpu()` fixed multi socket detection (linux) |
|
||||||
| 4.14.11 | 2019-10-01 | type definitions fix dockerInfo |
|
| 4.14.11 | 2019-10-01 | type definitions fix dockerInfo |
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
[![Caretaker][caretaker-image]][caretaker-url]
|
[![Caretaker][caretaker-image]][caretaker-url]
|
||||||
[![MIT license][license-img]][license-url]
|
[![MIT license][license-img]][license-url]
|
||||||
|
|
||||||
This is amazing. Started as a small projekt just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 200,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project!
|
This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 200,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project!
|
||||||
|
|
||||||
## New Version 4.0
|
## New Version 4.0
|
||||||
|
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.14.14</th>
|
||||||
|
<td>2019-10-18</td>
|
||||||
|
<td><span class="code">powershell()</span> fixed error handling (windows)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.14.13</th>
|
<th scope="row">4.14.13</th>
|
||||||
<td>2019-10-15</td>
|
<td>2019-10-15</td>
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></div>
|
<div class="subtitle"><span id="typed"></span></div>
|
||||||
<div class="version">Current Version: <span id="version">4.14.13</span></div>
|
<div class="version">Current Version: <span id="version">4.14.14</span></div>
|
||||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -321,6 +321,11 @@ function powerShell(cmd) {
|
|||||||
stdio: 'pipe'
|
stdio: 'pipe'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (child && !child.pid) {
|
||||||
|
child.on('error', function () {
|
||||||
|
resolve(result);
|
||||||
|
});
|
||||||
|
}
|
||||||
if (child && child.pid) {
|
if (child && child.pid) {
|
||||||
child.stdout.on('data', function (data) {
|
child.stdout.on('data', function (data) {
|
||||||
result = result + data.toString('utf8');
|
result = result + data.toString('utf8');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user