Remove the terms prompt. Moving to install.sh instead; since it's part of a pipe command this is a better way to get input.
This commit is contained in:
parent
a613ae9bfa
commit
6566b3f928
@ -74,19 +74,6 @@ async fn main() {
|
|||||||
|
|
||||||
// If the prover_id file is found, use the contents, otherwise generate a new random id
|
// If the prover_id file is found, use the contents, otherwise generate a new random id
|
||||||
// and store it.
|
// and store it.
|
||||||
let _ = match env::var("NONINTERACTIVE") {
|
|
||||||
Ok(_) => (),
|
|
||||||
Err(_) => {
|
|
||||||
println!(
|
|
||||||
"Do you agree to the Nexus Beta Terms of Use (https://nexus.xyz/terms-of-use)? (Y/n)"
|
|
||||||
);
|
|
||||||
let mut input = String::new();
|
|
||||||
let _ = std::io::stdin().read_line(&mut input);
|
|
||||||
if input.chars().nth(0).unwrap() == 'n' || input.chars().nth(0).unwrap() == 'N' {
|
|
||||||
return ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let mut prover_id = format!(
|
let mut prover_id = format!(
|
||||||
"{}-{}-{}",
|
"{}-{}-{}",
|
||||||
random_word::gen(Lang::En),
|
random_word::gen(Lang::En),
|
||||||
|
Loading…
Reference in New Issue
Block a user