From 9171273a55d7021e3d3de60ec149586ae0382b8d Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Sun, 20 Dec 2020 18:03:19 +0100
Subject: [PATCH] [build] ask user to install nvm itself

---
 rust-bins/xtask/src/main.rs | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/rust-bins/xtask/src/main.rs b/rust-bins/xtask/src/main.rs
index b60a7b60e..cb3d4bd82 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]))
-- 
GitLab