Update nodeloc_vps_autotest.sh

This commit is contained in:
Jensfrank 2024-06-27 11:14:09 +08:00 committed by GitHub
parent 2271b825eb
commit ba874788aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,13 +55,6 @@ install_dependencies() {
clear
}
# 函数:运行命令并捕获输出
run_and_capture() {
local output
output=$(eval "$1" 2>&1)
echo "$output"
}
# 检测VPS地理位置
detect_region() {
local country
@ -136,6 +129,13 @@ show_welcome() {
clear
}
# 运行命令并捕获输出
run_and_capture() {
local output
output=$(eval "$1" 2>&1)
echo "$output"
}
# 运行所有测试
run_all_tests() {
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"