Update nodemgmt-scripts.sh

This commit is contained in:
2023-07-06 22:05:49 -05:00
parent 02ff16bc87
commit 19b5bdb637

View File

@@ -478,7 +478,7 @@ SERVICE(){
var1=${NTYPE}_SERVICES_CHECK[@]
echo ${!var1}
# if [[ "${!var1}" = *"${1}"* ]]; then
if [[ " ${!var1[*]} " =~ " ${1} " ]]; then
if [[ " ${!var1} " =~ " ${1} " ]]; then
nid=1
if [ "${3}" != "" ]; then
var2=(${3})