From 92f06a64396099c14581cecae3c2ee8e25196244 Mon Sep 17 00:00:00 2001 From: Florian Gareis Date: Fri, 1 Mar 2024 19:13:46 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Mathias Fredriksson --- nodejs/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodejs/run.sh b/nodejs/run.sh index 677f527..dd2b49a 100755 --- a/nodejs/run.sh +++ b/nodejs/run.sh @@ -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)" if [ $? -ne 0 ]; then - echo "Failed to download nvm installation script." + echo "Failed to download nvm installation script: $script" exit 1 fi @@ -44,7 +44,7 @@ for version in "$${VERSIONLIST[@]}"; do done # Set default if provided -if [ -n "${DEFAULT}" ]; then +if [ -n "$${DEFAULT}" ]; then printf "🛠️ Setting default node version $${CODE}$DEFAULT$${RESET}...\n" output=$(nvm alias default $DEFAULT 2>&1) fi