From 6566b3f9289299c7b7c6bea68dc70fbfb1f41ec3 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Tue, 8 Oct 2024 17:05:16 -0700 Subject: [PATCH] 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. --- clients/cli/src/prover.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/clients/cli/src/prover.rs b/clients/cli/src/prover.rs index 6de1cff..7933584 100644 --- a/clients/cli/src/prover.rs +++ b/clients/cli/src/prover.rs @@ -74,19 +74,6 @@ async fn main() { // If the prover_id file is found, use the contents, otherwise generate a new random id // 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!( "{}-{}-{}", random_word::gen(Lang::En),