UltimateByte 9 лет назад
Родитель
Сommit
9f01c51788
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lgsm/functions/mods_core.sh

+ 3 - 3
lgsm/functions/mods_core.sh

@@ -477,7 +477,7 @@ fn_installed_mods_detailed_list(){
 	fn_mods_available_commands_from_installed
 	# Were now based on ${installedmodslist} array's values
 	# We're gonna go through all available commands, get details and display them to the user
-	for ((dlindex=0; dlindex <= ${#installedmodslist[@]}; dlindex++)); do
+	for ((dlindex=0; dlindex < ${#installedmodslist[@]}; dlindex++)); do
 		# Current mod is the "dlindex" value of the array we're going through
 		currentmod="${installedmodslist[dlindex]}"
 		# Get mod info
@@ -495,7 +495,7 @@ fn_installed_mods_medium_list(){
 	fn_mods_available_commands_from_installed
 	# Were now based on ${installedmodslist} array's values
 	# We're gonna go through all available commands, get details and display them to the user
-	for ((mlindex=0; mlindex <= ${#installedmodslist[@]}; mlindex++)); do
+	for ((mlindex=0; mlindex < ${#installedmodslist[@]}; mlindex++)); do
 		# Current mod is the "mlindex" value of the array we're going through
 		currentmod="${installedmodslist[mlindex]}"
 		# Get mod info
@@ -516,7 +516,7 @@ fn_installed_mods_light_list(){
 		echo "Installed mods/addons"
 		# Were now based on ${installedmodslist} array's values
 		# We're gonna go through all available commands, get details and display them to the user
-		for ((llindex=0; llindex <= ${#installedmodslist[@]}; llindex++)); do
+		for ((llindex=0; llindex < ${#installedmodslist[@]}; llindex++)); do
 			# Current mod is the "llindex" value of the array we're going through
 			currentmod="${installedmodslist[llindex]}"
 			# Get mod info