pinokiod 2.15.59 → 2.15.60
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/kernel/shell.js +11 -10
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -437,16 +437,17 @@ class Shell {
|
|
|
437
437
|
build (params) {
|
|
438
438
|
if (params.message) {
|
|
439
439
|
if (typeof params.message === "string") {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
440
|
+
return params.message
|
|
441
|
+
// // raw string -> do not touch
|
|
442
|
+
// if (this.platform === "win32") {
|
|
443
|
+
// delimiter = " & ";
|
|
444
|
+
// } else {
|
|
445
|
+
// delimiter = " ; ";
|
|
446
|
+
// }
|
|
447
|
+
// let m = params.message + delimiter + `echo "FINISHED: ${params.message}"\r\n`
|
|
448
|
+
// return m
|
|
448
449
|
} else if (Array.isArray(params.message)) {
|
|
449
|
-
params.message.push(`echo "SHELL FINISHED RUNNING"\r\n`)
|
|
450
|
+
// params.message.push(`echo "SHELL FINISHED RUNNING"\r\n`)
|
|
450
451
|
// if params.message is empty, filter out
|
|
451
452
|
//let delimiter = " && "
|
|
452
453
|
let delimiter
|
|
@@ -852,7 +853,7 @@ ${cleaned}
|
|
|
852
853
|
} else {
|
|
853
854
|
//console.log("## more incoming... ignore")
|
|
854
855
|
}
|
|
855
|
-
},
|
|
856
|
+
}, 1000)
|
|
856
857
|
} else {
|
|
857
858
|
callback()
|
|
858
859
|
}
|