Apply suggestions from code review

Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
pull/165/head
Florian Gareis 1 year ago committed by GitHub
parent 3d1037d1f2
commit 92f06a6439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,7 +14,7 @@ export NVM_DIR="$${INSTALL_PREFIX}/nvm"
script="$(curl -sS -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$${NVM_VERSION}/install.sh" 2>&1)" script="$(curl -sS -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$${NVM_VERSION}/install.sh" 2>&1)"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to download nvm installation script." echo "Failed to download nvm installation script: $script"
exit 1 exit 1
fi fi
@ -44,7 +44,7 @@ for version in "$${VERSIONLIST[@]}"; do
done done
# Set default if provided # Set default if provided
if [ -n "${DEFAULT}" ]; then if [ -n "$${DEFAULT}" ]; then
printf "🛠️ Setting default node version $${CODE}$DEFAULT$${RESET}...\n" printf "🛠️ Setting default node version $${CODE}$DEFAULT$${RESET}...\n"
output=$(nvm alias default $DEFAULT 2>&1) output=$(nvm alias default $DEFAULT 2>&1)
fi fi

Loading…
Cancel
Save