From ba874788aa52ac5ed700bd09d21f3410d0d34cb0 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Thu, 27 Jun 2024 11:14:09 +0800 Subject: [PATCH] Update nodeloc_vps_autotest.sh --- nodeloc_vps_autotest.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nodeloc_vps_autotest.sh b/nodeloc_vps_autotest.sh index e8b0095..db14ec2 100644 --- a/nodeloc_vps_autotest.sh +++ b/nodeloc_vps_autotest.sh @@ -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}"