Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-04 22:16:33 +08:00 committed by GitHub
parent 2decf57a5d
commit f66a5f465e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ run_script() {
echo -e "运行${YELLOW}IP质量测试...${NC}" echo -e "运行${YELLOW}IP质量测试...${NC}"
bash <(curl -Ls IP.Check.Place) | tee "$temp_file" bash <(curl -Ls IP.Check.Place) | tee "$temp_file"
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
sed -i '1,/^.*########################################################################.*$/!b;/^.*########################################################################.*$/!d' "$temp_file" sed -i -e '/########################################################################/,$p' -e '1,/########################################################################/d' "$temp_file"
sed -i '/^$/d' "$temp_file" # 删除空行 sed -i '/^$/d' "$temp_file" # 删除空行
cp "$temp_file" "${output_file}_ip_quality" cp "$temp_file" "${output_file}_ip_quality"
;; ;;