Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Sep 11, 2024
1 parent fea0349 commit b568028
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webcontainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export class Container {

async run_cmd(cmd: string, args: string[], options?: SpawnOptions) {
await this.init();
this.terminal.writeln(`/${options?.cwd ?? ""}$ ${cmd} ${args.join(" ")}`);
if (options?.output ?? true) {
this.terminal.writeln(`/${options?.cwd ?? ""}$ ${cmd} ${args.join(" ")}`);
}
const installProcess = await this.container!.spawn(cmd, args, options);
installProcess.output.pipeTo(
new WritableStream({
Expand Down

0 comments on commit b568028

Please sign in to comment.