From 90a795adaa31fc9782520eeeba3182ba10cb0d54 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Mon, 16 Jan 2017 19:28:43 +0100 Subject: [PATCH] one fix --- lgsm/functions/command_mods_remove.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/command_mods_remove.sh b/lgsm/functions/command_mods_remove.sh index 6e7abc531..f72e3b385 100644 --- a/lgsm/functions/command_mods_remove.sh +++ b/lgsm/functions/command_mods_remove.sh @@ -30,9 +30,9 @@ fn_mods_remove_init(){ fi # Build installed mods list and display to the user. installedmodsline=1 - availablemodsremove=() + availablemodsremove=() while [ $installedmodsline -le $installedmodscount ]; do - availablemodsremove+=( "$(sed "${installedmodsline}q;d" "${modslockfilefullpath})" ) + availablemodsremove+=( "$(sed "${installedmodsline}q;d" "${modslockfilefullpath}" )" ) echo -e " * \e[36m$(sed "${installedmodsline}q;d" "${modslockfilefullpath}")\e[0m" let installedmodsline=installedmodsline+1 done @@ -40,7 +40,7 @@ fn_mods_remove_init(){ # Keep prompting as long as the user input doesn't correspond to an available mod while [[ ! " ${availablemodsremove[@]} " =~ " ${usermodselect} " ]]; do - echo -en "Enter a \e[36mmod\e[0m to ${red}remove${default} (or exit to abort): " + echo -en "Enter a \e[36mmod\e[0m to \e[31mremove\e[0m (or exit to abort): " read -r usermodselect # Exit if user says exit or abort if [ "${usermodselect}" == "exit" ]||[ "${usermodselect}" == "abort" ]; then