From c97875e3e5f5b037c4cd7d40949bd5d7ece67f3b Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 20 Jun 2025 17:19:48 +0200 Subject: [PATCH] bugfix: array-less leftover exec() call --- com/isoterminal/ISOTerminal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com/isoterminal/ISOTerminal.js b/com/isoterminal/ISOTerminal.js index 65d7f42..bcc106a 100644 --- a/com/isoterminal/ISOTerminal.js +++ b/com/isoterminal/ISOTerminal.js @@ -38,6 +38,7 @@ ISOTerminal.prototype.exec = function(opts){ const shellscript = opts[0]; const cb = opts[1]; let cmd = `printf "\n\r"; { sh< /mnt/exec;\n` + console.log(cmd) if( cb ){ window.cb = cb cmd += `js 'document.querySelector("[isoterminal]").emit("read_file", ["exec", window.cb ])';\n` @@ -47,7 +48,7 @@ ISOTerminal.prototype.exec = function(opts){ ISOTerminal.prototype.hook = function(hookname,args){ let cmd = `{ type hook || source /etc/profile.sh; }; hook ${hookname} "${args.join('" "')}"` - this.exec(cmd) + this.exec([cmd]) } ISOTerminal.prototype.serial_input = 0; // can be set to 0,1,2,3 to define stdinput tty (xterm plugin)