mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
if not tty but force install is true, keep going
This commit is contained in:
parent
d9f5fd0c6a
commit
ccafeb21a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue