diff --git a/create_vhost.sh b/create_vhost.sh index ebd9a3c..aa775be 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -579,7 +579,14 @@ if [ -n "$_vhost_config" ]; then if [ -z "$_config_file" ]; then continue fi + [[ "$_config_file" =~ /DELETED/ ]] && continue + [[ "$_config_file" =~ /BAK/ ]] && continue + + # - Matches i.e vhosts.2018-01-14-0106 + # - + [[ "$_config_file" =~ /vhosts\.[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{4}/ ]] && continue + _extension="${_config_file##*.}" if [ "$_extension" = "swp" ] ; then continue