From af33a1d18764c14fefa068e10799800b5cffb641 Mon Sep 17 00:00:00 2001 From: LPJon <46533576+LPJon@users.noreply.github.com> Date: Thu, 31 Aug 2023 02:55:50 -0500 Subject: [PATCH] Update install_netdata fixed typo for removing nodejs rpm when nvm is selected --- install_netdata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_netdata b/install_netdata index d48cc7a..fab3759 100644 --- a/install_netdata +++ b/install_netdata @@ -20,7 +20,7 @@ function getsystemnodeversion { fi } function checkfornodejsrpm { - yum list installed nodejs + yum list installed nodejs | grep nodejs } function installnodeJS { if [ "$usenvm" == "n" ]; then @@ -34,7 +34,7 @@ function installnodeJS { nodejs="nodejs" fi elif [ "$usenvm" == "y" ]; then - if [ -z "$(checkfornodejsrpm)" ]; then + if [ ! -z "$(checkfornodejsrpm)" ]; then yum -y remove nodejs fi if [ -e "$HOME/.nvm" ];then