Skip to content

Commit c97875e

Browse files
bugfix: array-less leftover exec() call
1 parent 07d4fab commit c97875e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com/isoterminal/ISOTerminal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ISOTerminal.prototype.exec = function(opts){
3838
const shellscript = opts[0];
3939
const cb = opts[1];
4040
let cmd = `printf "\n\r"; { sh<<EOF\n ${shellscript}; \nEOF\n} &> /mnt/exec;\n`
41+
console.log(cmd)
4142
if( cb ){
4243
window.cb = cb
4344
cmd += `js 'document.querySelector("[isoterminal]").emit("read_file", ["exec", window.cb ])';\n`
@@ -47,7 +48,7 @@ ISOTerminal.prototype.exec = function(opts){
4748

4849
ISOTerminal.prototype.hook = function(hookname,args){
4950
let cmd = `{ type hook || source /etc/profile.sh; }; hook ${hookname} "${args.join('" "')}"`
50-
this.exec(cmd)
51+
this.exec([cmd])
5152
}
5253

5354
ISOTerminal.prototype.serial_input = 0; // can be set to 0,1,2,3 to define stdinput tty (xterm plugin)

0 commit comments

Comments
 (0)