Jelajahi Sumber

fix for full commands to work

UltimateByte 9 tahun lalu
induk
melakukan
edf5b787a9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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]}