Fixed konsole not outputting
All checks were successful
Build Website / Build NPM Project (push) Successful in 20s
Build Website / Build & Push Dockerfile (push) Successful in 43s

This commit is contained in:
Zakary Timson 2024-01-05 15:25:02 -05:00
parent cc9c9ea1b8
commit d07c1a4521

View File

@ -119,7 +119,7 @@ window.cli = {
try {
const args = parts.slice(1).map(a => (a[0] == '"' || a[0] == "'") ? a.slice(1, -1) : a);
const out = exec.run(args);
if(!!out && !silent) window.cli.stdOut(`${window.cli.prompt()} ${command}\n${out}`);
if(!silent) window.cli.stdOut(`${window.cli.prompt()} ${command}${out ? '\n' + out : ''}`);
} catch(err) {
console.error(err);
window.cli.stdErr(`${window.cli.prompt()} ${command}\n${err.message || `${parts[0]}: exited with a non-zero status`}`);