瀏覽代碼

* Arreglar errores

Guzmán Castanedo Villalba 6 年之前
父節點
當前提交
d1fd51b78f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      check-virtualhosts

+ 2 - 1
check-virtualhosts

@@ -38,8 +38,9 @@ getVirtualHosts() {
 			continue
 		fi
 		for hostname in $linea;do
+			hostname=$(echo "$hostname" | sed 's/;//g')
 			if [ $hostname != "server_name" ] && [ $hostname != "localhost" ];then
-				hostnames[$cont]=$(echo "$hostname" | sed 's/;//g')
+				hostnames[$cont]=$hostname
 				cont=$((cont+1))
 			fi
 		done