fix unknown arg issue on ubuntu

This commit is contained in:
Matthieu Jolimaitre 2024-04-10 11:35:24 +02:00
parent fbcd3f77e9
commit 7ce02e45c8
2 changed files with 3 additions and 1 deletions

View file

@ -62,7 +62,7 @@ class InputHandler {
}
async read_one_char() {
const args = ["-i0", "sh", "-c", "read -n 1 OUT; echo -n $OUT"];
const args = ["-i0", "bash", "-c", "read -n 1 OUT; echo -n $OUT"];
const command = new Deno.Command("stdbuf", { args, stdin: "inherit", stdout: "piped" });
const output = await command.output();
const result = new TextDecoder().decode(output.stdout);