Update install_netdata

fixed typo for removing nodejs rpm when nvm is selected
This commit is contained in:
LPJon
2023-08-31 02:55:50 -05:00
committed by GitHub
parent 9941996398
commit af33a1d187

View File

@@ -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