瀏覽代碼

fix for full commands to work

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

+ 1 - 1
lgsm/functions/core_getopt.sh

@@ -141,7 +141,7 @@ else
 	index="0"
 	for ((index="0"; index < ${#currentopt[@]}; index+=3)); do
 		currcmdamount="$(echo "${currentopt[index]}"| awk -F ';' '{ print NF }')"
-		for ((currcmdindex=1; currcmdindex < ${currcmdamount}; currcmdindex++)); do
+		for ((currcmdindex=1; currcmdindex <= ${currcmdamount}; currcmdindex++)); do
 			if [ "$(echo "${currentopt[index]}"| awk -F ';' -v x=${currcmdindex} '{ print $x }')" == "${getopt}" ]; then
 				# Run command
 				${currentopt[index+1]}