From 2b42029b518343a6a7c5945a7c2d3b754018f11e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 Nov 2023 14:07:35 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/sites.inc b/inc/sites.inc index f2b53a78..f5b9e672 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} ! -eq 0 ]; then + if ! [[ ${SEARCH} =~ '^[0-9]+$' ]]; then sites=$(find ${gosite}/*${SEARCH,,}*.conf) else sites=$(find ${gosite}/*.conf)