command.js: displaying errorlevel when app quit with error

This commit is contained in:
minjaesong
2020-11-12 15:07:29 +09:00
parent 8220732db9
commit 57ffc1a81f
3 changed files with 29 additions and 17 deletions

View File

@@ -126,5 +126,4 @@ var execApp = function(cmdsrc, args) {
serial.println("TVDOS.SYS initialised, running boot script...");
var _G = {};
filesystem.open("A", "tvdos/bin/command.js", "R");
let cmdsrc = filesystem.readAll("A");
execApp(cmdsrc, ["", "/c", "\\AUTOEXEC.BAT"]);
execApp(filesystem.readAll("A"), ["", "/c", "\\AUTOEXEC.BAT"]);