From 3cca4b40533f7f4e320e5da62928c9408f6ef159 Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Thu, 28 Aug 2025 00:09:21 -0400 Subject: [PATCH] clean nvm log --- scripts/install_nodejs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install_nodejs.sh b/scripts/install_nodejs.sh index 7a4dfde0..a9c89e7a 100755 --- a/scripts/install_nodejs.sh +++ b/scripts/install_nodejs.sh @@ -36,7 +36,10 @@ install_nodejs() { log "Node.js is not installed. ${PRIMARY_COLOR}Installing the LTS version...${RESET_COLOR}" fi - if ! bash -c "source ${NVM_DIR}/nvm.sh && nvm install --lts"; then + # Keep only the download progress bar; hide all other chatter + if ! bash -c "source ${NVM_DIR}/nvm.sh && nvm install --lts" \ + 1>/dev/null \ + 2> >(grep -E '%\[' >&2); then log "${PRIMARY_COLOR}Failed to install Node.js.${RESET_COLOR}" return 1 fi