mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-27 00:35:19 +00:00
Update nodeloc_vps_autotest.sh
This commit is contained in:
parent
2271b825eb
commit
ba874788aa
@ -55,13 +55,6 @@ install_dependencies() {
|
|||||||
clear
|
clear
|
||||||
}
|
}
|
||||||
|
|
||||||
# 函数:运行命令并捕获输出
|
|
||||||
run_and_capture() {
|
|
||||||
local output
|
|
||||||
output=$(eval "$1" 2>&1)
|
|
||||||
echo "$output"
|
|
||||||
}
|
|
||||||
|
|
||||||
# 检测VPS地理位置
|
# 检测VPS地理位置
|
||||||
detect_region() {
|
detect_region() {
|
||||||
local country
|
local country
|
||||||
@ -136,6 +129,13 @@ show_welcome() {
|
|||||||
clear
|
clear
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 运行命令并捕获输出
|
||||||
|
run_and_capture() {
|
||||||
|
local output
|
||||||
|
output=$(eval "$1" 2>&1)
|
||||||
|
echo "$output"
|
||||||
|
}
|
||||||
|
|
||||||
# 运行所有测试
|
# 运行所有测试
|
||||||
run_all_tests() {
|
run_all_tests() {
|
||||||
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
|
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
|
||||||
|
Loading…
Reference in New Issue
Block a user