mirror of
https://github.com/xykt/NetQuality.git
synced 2026-01-12 20:15:34 +08:00
Update net.sh
Fix incorrect wording.
This commit is contained in:
12
net.sh
12
net.sh
@@ -132,7 +132,7 @@ declare mode_yes=0
|
||||
declare mode_skip=""
|
||||
declare mode_menu=0
|
||||
declare mode_output=0
|
||||
declare mode_private=0
|
||||
declare mode_privacy=0
|
||||
declare ping_test_count=10
|
||||
declare pingww_test_count=12
|
||||
declare usesudo="sudo"
|
||||
@@ -152,7 +152,7 @@ shelp_lines=(
|
||||
" -o /path/to/file.ansi Output ANSI report to file 输出ANSI报告至文件"
|
||||
" /path/to/file.json Output JSON result to file 输出JSON结果至文件"
|
||||
" /path/to/file.anyother Output plain text report to file 输出纯文本报告至文件"
|
||||
" -p Private mode - no generate report link 隐私模式:不生成报告链接"
|
||||
" -p Privacy mode - no generate report link 隐私模式:不生成报告链接"
|
||||
" -y Install dependencies without interupt 自动安装依赖"
|
||||
" -E Specify English Output 指定英文输出"
|
||||
" -L Low data mode 低数据模式(跳过测速环节)"
|
||||
@@ -2610,7 +2610,7 @@ break
|
||||
}
|
||||
shift
|
||||
;;
|
||||
-p)mode_private=1
|
||||
-p)mode_privacy=1
|
||||
shift
|
||||
;;
|
||||
-y)mode_yes=1
|
||||
@@ -2896,10 +2896,10 @@ local net_report=$(show_head
|
||||
[[ $mode_skip != *"6"* && $2 -eq 4 ]]&&show_speedtest
|
||||
[[ $mode_skip != *"7"* ]]&&show_iperf
|
||||
show_tail)
|
||||
[[ mode_json -eq 1 || mode_output -eq 1 || mode_private -eq 0 ]]&&save_json $2
|
||||
[[ mode_private -eq 0 ]]&&report_link=$(curl -$2 -s -X POST https://upload.check.place -d "type=net" --data-urlencode "json=$netdata" --data-urlencode "content=$net_report")
|
||||
[[ mode_json -eq 1 || mode_output -eq 1 || mode_privacy -eq 0 ]]&&save_json $2
|
||||
[[ mode_privacy -eq 0 ]]&&report_link=$(curl -$2 -s -X POST https://upload.check.place -d "type=net" --data-urlencode "json=$netdata" --data-urlencode "content=$net_report")
|
||||
[[ mode_json -eq 0 ]]&&echo -ne "\r$net_report\n"
|
||||
[[ mode_json -eq 0 && mode_private -eq 0 && $report_link == *"https://Report.Check.Place/"* ]]&&echo -ne "\r${stail[link]}$report_link$Font_Suffix\n"
|
||||
[[ mode_json -eq 0 && mode_privacy -eq 0 && $report_link == *"https://Report.Check.Place/"* ]]&&echo -ne "\r${stail[link]}$report_link$Font_Suffix\n"
|
||||
[[ mode_json -eq 1 ]]&&echo -ne "\r$netdata\n"
|
||||
echo -ne "\r\n"
|
||||
if [[ mode_output -eq 1 ]];then
|
||||
|
||||
Reference in New Issue
Block a user