From f2f6b4cdcbf587f46285918b1972dbe5825e048c Mon Sep 17 00:00:00 2001 From: chunzhi Date: Sat, 13 Jan 2024 19:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20choose.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- choose.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/choose.sh b/choose.sh index 68b7a2e..3229667 100644 --- a/choose.sh +++ b/choose.sh @@ -6,7 +6,6 @@ EMAIL="your_email@example.com" ZONE_ID="your_zone_id" DOMAIN="your_domain.com" SUBDOMAIN="sub.your_domain.com" -SCAN_PROGRAM_PATH="your_scan_program_path" TTL=300 # 克隆git仓库 @@ -28,7 +27,7 @@ total_lines=$(cat result/*.csv | wc -l) for file in *.txt do # 对每个txt文件执行scan_linux_amd64命令,输出结果到result文件夹中的csv文件 - $SCAN_PROGRAM_PATH -c 2000 -t 5 -o result/result_${file%.txt}.csv $file || { echo "scan program failed"; exit 1; } + ./scan_linux_amd64 -c 2000 -t 5 -o result/result_${file%.txt}.csv $file || { echo "scan program failed"; exit 1; } # 从csv文件中读取每一行,并显示进度 cat "result/result_${file%.txt}.csv" | pv -l -s $total_lines | while IFS= read -r line