|
@@ -402,7 +402,6 @@ fn_mods_available(){
|
|
|
fn_mods_show_available(){
|
|
fn_mods_show_available(){
|
|
|
# Set and reset vars
|
|
# Set and reset vars
|
|
|
compatiblemodslistindex=0
|
|
compatiblemodslistindex=0
|
|
|
- spaces=" "
|
|
|
|
|
# As long as we're within index values
|
|
# As long as we're within index values
|
|
|
while [ "${compatiblemodslistindex}" -lt "${#compatiblemodslist[@]}" ]; do
|
|
while [ "${compatiblemodslistindex}" -lt "${#compatiblemodslist[@]}" ]; do
|
|
|
# Set values for convenience
|
|
# Set values for convenience
|
|
@@ -423,6 +422,23 @@ fn_mods_show_available(){
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+# Builds installed mods list and display it to the user.
|
|
|
|
|
+fn_installed_mods_list(){
|
|
|
|
|
+ # Set variables
|
|
|
|
|
+ installedmodsline=1
|
|
|
|
|
+ installedmodslist=()
|
|
|
|
|
+ while [ $installedmodsline -le $installedmodscount ]; do
|
|
|
|
|
+ currentmod="$(sed "${installedmodsline}q;d" "${modslockfilefullpath}" )""
|
|
|
|
|
+ installedmodslist+=( "$(sed "${installedmodsline}q;d" "${modslockfilefullpath}" )" )
|
|
|
|
|
+ fn_mod_get_info_from_command
|
|
|
|
|
+ echo -e "\e[1m${displayedmodname}\e[0m - ${displayedmoddescription} - ${displayedmodsite}"
|
|
|
|
|
+ echo -e " * \e[36m${displayedmodcommand}\e[0m"
|
|
|
|
|
+ let installedmodsline=installedmodsline+1
|
|
|
|
|
+ done
|
|
|
|
|
+ echo ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
# Get details of a mod any (relevant and unique, such as full mod name or install command) value
|
|
# Get details of a mod any (relevant and unique, such as full mod name or install command) value
|
|
|
fn_mod_get_info_from_command(){
|
|
fn_mod_get_info_from_command(){
|
|
|
# Variable to know when job is done
|
|
# Variable to know when job is done
|