From 0e0ceebd9e98ceeb5409d6e026a004e4e0f7e329 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 24 Apr 2021 09:38:51 -0700 Subject: [PATCH] Workaround Docker bug with term size settings --- backend/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/util.js b/backend/util.js index aebbd1b..5d36faf 100644 --- a/backend/util.js +++ b/backend/util.js @@ -66,6 +66,8 @@ export function bash(cmdline) { // single command (no shell logic). cmdline = "exec " + cmdline; } + // Workaround https://github.com/moby/moby/issues/25450 + cmdline = "stty cols 80 rows 24; " + cmdline; return ["bash", "-c", `set -euo pipefail; ${cmdline}`]; }