From a73228e1e2dfba57ad6f73a95b54603a954f7d92 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:32:46 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 49459fa7..7f2a81d7 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -22,13 +22,11 @@ function setup_nodejs() { if command -v node >/dev/null; then CURRENT_NODE_VERSION="$(node -v | grep -oP '^v\K[0-9]+')" if [[ "$CURRENT_NODE_VERSION" != "$NODE_VERSION" ]]; then - msg_info "Node.js version $CURRENT_NODE_VERSION found, replacing with $NODE_VERSION" + msg_info "Node.js $CURRENT_NODE_VERSION found, replacing with $NODE_VERSION" NEED_NODE_INSTALL=true - else - msg_ok "Node.js $NODE_VERSION already installed" fi else - msg_info "Node.js not found, installing version $NODE_VERSION" + msg_info "Setup Node.js $NODE_VERSION" NEED_NODE_INSTALL=true fi @@ -67,7 +65,7 @@ function setup_nodejs() { exit 1 fi - msg_ok "Installed Node.js ${NODE_VERSION}" + msg_ok "Setup Node.js ${NODE_VERSION}" fi export NODE_OPTIONS="--max-old-space-size=4096" @@ -117,7 +115,7 @@ function setup_nodejs() { fi fi done - msg_ok "All requested Node modules have been processed" + msg_ok "Setup Node.js" fi }