瀏覽代碼

hide "DEVCOMMAND" description commands

UltimateByte 9 年之前
父節點
當前提交
f126f52de9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lgsm/functions/core_getopt.sh

+ 1 - 1
lgsm/functions/core_getopt.sh

@@ -135,7 +135,7 @@ fn_opt_usage(){
 	{
 	for ((index="0"; index < ${#currentopt[@]}; index+=3)); do
 		# Hide developer commands
-		if [ "${currentopt[index+3]}" != "DEVCOMMAND" ]; then
+		if [ "${currentopt[index+2]}" != "DEVCOMMAND" ]; then
 			echo -e "${cyan}$(echo "${currentopt[index]}" | awk -F ';' '{ print $2 }')\t${default}$(echo "${currentopt[index]}" | awk -F ';' '{ print $1 }')\t| ${currentopt[index+2]}"
 		fi
 	done