Some minor changes.

This commit is contained in:
Christoph 2018-02-08 03:36:16 +01:00
parent 5fcf7c5506
commit 856b8cb787

View File

@ -579,7 +579,14 @@ if [ -n "$_vhost_config" ]; then
if [ -z "$_config_file" ]; then if [ -z "$_config_file" ]; then
continue continue
fi fi
[[ "$_config_file" =~ /DELETED/ ]] && continue [[ "$_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##*.}" _extension="${_config_file##*.}"
if [ "$_extension" = "swp" ] ; then if [ "$_extension" = "swp" ] ; then
continue continue