From 7ce02e45c89556288d5bdd5cf600c7fc3e213d01 Mon Sep 17 00:00:00 2001 From: Matthieu Jolimaitre Date: Wed, 10 Apr 2024 11:35:24 +0200 Subject: [PATCH] fix unknown arg issue on ubuntu --- .gitignore | 2 ++ client/main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 688e137..59117af 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /deno.lock + +*.log diff --git a/client/main.ts b/client/main.ts index 3eb10e9..e2af318 100755 --- a/client/main.ts +++ b/client/main.ts @@ -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);