瀏覽代碼

< rather than <=

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

+ 1 - 1
lgsm/functions/mods_core.sh

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