diff --git a/rust-bins/xtask/src/main.rs b/rust-bins/xtask/src/main.rs index b60a7b60eecf221dd508eab76164b64911c168f2..cb3d4bd82111fa7d86e30860219f201e0eba572c 100644 --- a/rust-bins/xtask/src/main.rs +++ b/rust-bins/xtask/src/main.rs @@ -74,21 +74,8 @@ fn main() -> Result<()> { fn install_and_use_node_version() -> Result<()> { if exec_should_success(Command::new("nvm").arg("--version")).is_err() { - println!("Install nvm v{} …", NVM_VERSION); - let nvm_install_script = exec_and_get_stdout(Command::new("wget").args(&[ - "-qO-", - &format!( - "https://raw.githubusercontent.com/nvm-sh/nvm/v{}/install.sh", - NVM_VERSION - ), - ]))?; - run_script::spawn( - &nvm_install_script, - &vec![], - &run_script::ScriptOptions::new(), - )? - .wait_with_output()?; - //exec_should_success(Command::new("bash").arg(nvm_install_script))?; + println!("Duniter need nvm to build, please install it: https://raw.githubusercontent.com/nvm-sh/nvm/v{}/install.sh", NVM_VERSION); + std::process::abort(); } exec_should_success(Command::new("nvm").args(&["install", NODE_VERSION]))?; exec_should_success(Command::new("nvm").args(&["use", NODE_VERSION]))