pinokiod 3.19.24 → 3.19.26

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.
Files changed (2) hide show
  1. package/kernel/shell.js +5 -1
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -258,10 +258,11 @@ class Shell {
258
258
  this.params = params
259
259
  if (this.params.shell) {
260
260
  this.shell = this.params.shell
261
- if (this.shell === "bash") {
261
+ if (/bash/i.test(this.shell)) {
262
262
  this.args = ["--noprofile", "--norc"]
263
263
  }
264
264
  }
265
+ console.log({ shell: this.shell, args: this.args, })
265
266
 
266
267
  // 3. path => path can be http, relative, absolute
267
268
  this.path = params.path
@@ -499,10 +500,13 @@ class Shell {
499
500
  console.log("Vt.write", data)
500
501
  vt.write(data, () => {
501
502
  let buf = vts.serialize()
503
+ console.log({ buf })
502
504
  let re = /(.+)echo pinokio[\r\n]+pinokio[\r\n]+(\1)/gs
503
505
  const match = re.exec(buf)
506
+ console.log({ match })
504
507
  if (match && match.length > 0) {
505
508
  let stripped = this.stripAnsi(match[1])
509
+ console.log({ stripped })
506
510
  const p = stripped
507
511
  .replaceAll(/[\r\n]/g, "")
508
512
  .trim()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.24",
3
+ "version": "3.19.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {