cloudron 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/actions.js +1 -1
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -1370,7 +1370,7 @@ async function exec(args, localOptions, cmd) {
|
|
|
1370
1370
|
|
|
1371
1371
|
demuxStream(socket, stdout, process.stderr); // can get separate streams in non-tty mode
|
|
1372
1372
|
socket.on('end', function () { // server closed the socket
|
|
1373
|
-
stdin.end(); // required for this process to 'exit' cleanly. do not call exit() because writes may not have finished
|
|
1373
|
+
if (typeof stdin.end === 'function') stdin.end(); // required for this process to 'exit' cleanly. do not call exit() because writes may not have finished . the type check is required for when stdin: 'ignore' in execSync, not sure why
|
|
1374
1374
|
if (stdout !== process.stdout) stdout.end(); // for push stream
|
|
1375
1375
|
|
|
1376
1376
|
socket.end();
|