From cc7ae32e0f63135f8eff70a37442d67dbe2c408f Mon Sep 17 00:00:00 2001 From: habacat Date: Tue, 5 Aug 2025 21:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E5=90=AF=E5=8A=A8=E6=97=B6=E6=8C=87=E5=AE=9A?= =?UTF-8?q?-y=E5=8F=AF=E4=BB=A5=E8=B7=B3=E8=BF=87=E6=89=80=E6=9C=89?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NodeQuality.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/NodeQuality.sh b/NodeQuality.sh index 92d14e1..334bcdf 100644 --- a/NodeQuality.sh +++ b/NodeQuality.sh @@ -239,7 +239,15 @@ function main(){ start_ascii - ask_question + if [[ "$1" == "-y" ]]; then + _yellow_bold "'-y' flag detected. Skipping questions and using defaults." + run_yabs_test='y' + run_ip_quality_test='y' + run_net_quality_test='y' + run_net_trace_test='y' + else + ask_question + fi _green_bold 'Clean Up before Installation' pre_init @@ -280,4 +288,4 @@ function main(){ post_cleanup } -main +main "$@"