Workaround Docker bug with term size settings

This commit is contained in:
Radon Rosborough 2021-04-24 09:38:51 -07:00
parent db41dfa0a3
commit 0e0ceebd9e
1 changed files with 2 additions and 0 deletions

View File

@ -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}`];
}