diff --git a/inc/sites.inc b/inc/sites.inc index 7245b9ed..f2b53a78 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -642,7 +642,7 @@ SITEINFO(){ gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled declare -A SITELIST if [ "${gosite}" != "" ]; then - if [ ${SEARCH} -ne 0 ]; then + if [ ${SEARCH} ! -eq 0 ]; then sites=$(find ${gosite}/*${SEARCH,,}*.conf) else sites=$(find ${gosite}/*.conf)