From 06b36571a712c8938fe2408a4364e9a9b50cdba1 Mon Sep 17 00:00:00 2001 From: FlorianGareis Date: Fri, 1 Mar 2024 14:34:36 +0000 Subject: [PATCH] Fix error output of curl/bash --- nodejs/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodejs/run.sh b/nodejs/run.sh index 5c7cf8b..b5fa5f9 100755 --- a/nodejs/run.sh +++ b/nodejs/run.sh @@ -12,7 +12,8 @@ printf "$${BOLD}Installing nvm!$${RESET}\n" export NVM_DIR="$${INSTALL_PREFIX}/nvm" -output=$(curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$${NVM_VERSION}/install.sh" | bash) +script="$(curl -sS -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$${NVM_VERSION}/install.sh" 2>&1)" +output="$(bash <<<"$script" 2>&1)" if [ $? -ne 0 ]; then echo "Failed to install nvm: $output" exit 1