From 952f28136536489fb5267c614d264c6f6fbbbd26 Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Thu, 15 Jan 2026 14:10:19 +0800 Subject: [PATCH] =?UTF-8?q?optimize(master=20:=20nicsensor.sh)=20update=20?= =?UTF-8?q?to=201.9.2=20=E4=BC=98=E5=8C=96=20help=20=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nicsensor.sh b/nicsensor.sh index c71cfc4..095a7b6 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -1,5 +1,5 @@ #!/bin/sh -SCRIPT_VERSION="1.9.1" +SCRIPT_VERSION="1.9.2" # --------------------------------------------------------- # Project Feature Varible (Change if need) # --------------------------------------------------------- @@ -482,6 +482,9 @@ pre_exec_hook(){ if [ "$Param1" = "help" ] && [ $param_num -eq 2 ];then print_usage $Param2 exit 0 + elif [ "$Param1" = "help" ] && [ $param_num -gt 2 ];then + print_usage_guide + exit 0 fi if [ "$Param1" = "get" ] || [ "$Param1" = "set" ];then @@ -493,6 +496,7 @@ pre_exec_hook(){ # if in debug mode, skip this check if [ "$server_type" = "auto" ] && [ $DEBUG_MODE -eq 0 ];then try_get_server_type + exit 0 fi # is param legel? @@ -1680,7 +1684,7 @@ if [ "$1" = "detect" ];then exit 0 fi if [ $param_num -le 2 ];then - print_usage_guide + print_usage "all" else start_get_sensor fi