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