diff --git a/inc/sites.inc b/inc/sites.inc index 47d52341..a83a7526 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -560,7 +560,7 @@ SITEINFO(){ gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled declare -A SITELIST if [ "${gosite}" != "" ]; then - [ "${SEARCH}" != "0" ] && siteslist="${gosite}/*${SEARCH,,}*.conf" || siteslist="${gosite}/*.conf" + [ "${SEARCH}" != "0" ] && siteslist=${gosite}/*${SEARCH,,}*.conf || siteslist=${gosite}/*.conf if [ -f ${siteslist} ]; then sites=$(find ${siteslist})