Fix error output of curl/bash

pull/165/head
FlorianGareis 1 year ago
parent 1f4811462a
commit 06b36571a7
No known key found for this signature in database

@ -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

Loading…
Cancel
Save