From 3d07b166f26450e025aed13c48e4b3f3d1955045 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 23:38:19 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e9b13d1a..41e8f140 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -254,6 +254,7 @@ DELSITES(){ DIVIDER true sid=1 for siteconf in /etc/nginx/sites-available/* ; do + [ -e "$siteconf" ] || continue IFS='/'; site_conf=(${siteconf}); unset IFS SITES[${sid}]=${site_conf[4]} sid=`expr $sid + 1` @@ -374,7 +375,7 @@ NEWSITE(){ fi echo -e -n "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} " read response - if [[ $response =~ ^[Yy]$ ]]; then + if [[ $response =~ ^[Yy]$ ]]; then if [[ ${NEW_SITE} == *","* ]]; then IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS MAIN_SITE=${NEW_SITES[0]}