From ccafeb21a3cca34953662d939804a0c7728a2cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Fri, 18 Mar 2022 17:05:51 +0100 Subject: [PATCH] if not tty but force install is true, keep going --- xtask/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 9196c5b3e..df200fec6 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -1123,7 +1123,7 @@ fn ensure_compiler( let toolchain_path = get_sysroot(None)?.ok_or_else(|| "default toolchain not installed".to_owned())?; // If the terminal is a tty, offer to download the latest toolchain. - if !atty::is(atty::Stream::Stdin) { + if !atty::is(atty::Stream::Stdin) && !force_install { return Err(format!("Toolchain for {} not found", target)); }