|
|
@ -37,7 +37,7 @@ while [[ ! " ${installedmodslist[@]} " =~ " ${usermodselect} " ]]; do |
|
|
|
read -r usermodselect |
|
|
|
# Exit if user says exit or abort. |
|
|
|
if [ "${usermodselect}" == "exit" ]||[ "${usermodselect}" == "abort" ]; then |
|
|
|
core_exit.sh |
|
|
|
core_exit.sh |
|
|
|
# Supplementary output upon invalid user input. |
|
|
|
elif [[ ! " ${availablemodscommands[@]} " =~ " ${usermodselect} " ]]; then |
|
|
|
fn_print_error2_nl "${usermodselect} is not a valid addon/mod." |
|
|
@ -100,7 +100,7 @@ fi |
|
|
|
echo -en "removing ${modcommand}-files.txt..." |
|
|
|
fn_sleep_time |
|
|
|
rm -rf "${modsdir:?}/${modcommand}-files.txt" |
|
|
|
local exitcode=$? |
|
|
|
exitcode=$? |
|
|
|
if [ "${exitcode}" != 0 ]; then |
|
|
|
fn_script_log_fatal "Removing ${modsdir}/${modcommand}-files.txt" |
|
|
|
fn_print_fail_eol_nl |
|
|
@ -115,7 +115,7 @@ echo -en "removing ${modcommand} from ${modsinstalledlist}..." |
|
|
|
fn_sleep_time |
|
|
|
|
|
|
|
sed -i "/^${modcommand}$/d" "${modsinstalledlistfullpath}" |
|
|
|
local exitcode=$? |
|
|
|
exitcode=$? |
|
|
|
if [ "${exitcode}" != 0 ]; then |
|
|
|
fn_script_log_fatal "Removing ${modcommand} from ${modsinstalledlist}" |
|
|
|
fn_print_fail_eol_nl |
|
|
|