Browse Source

fix(mods): set exit code to 0 when user cancels mod installation/removal

pull/4472/head
Daniel Gibbs 2 weeks ago
parent
commit
e3a0ee26a3
  1. 1
      lgsm/modules/command_mods_install.sh
  2. 1
      lgsm/modules/command_mods_remove.sh

1
lgsm/modules/command_mods_install.sh

@ -88,6 +88,7 @@ if [ -f "${modsinstalledlistfullpath}" ]; then
fn_script_log_warn "${modprettyname} is already installed"
echo -e " * Any configs may be overwritten."
if ! fn_prompt_yn "Continue?" Y; then
exitcode=0
core_exit.sh
fi
fn_script_log_info "User selected to continue"

1
lgsm/modules/command_mods_remove.sh

@ -47,6 +47,7 @@ done
fn_print_warning_nl "You are about to remove ${cyan}${usermodselect}${default}."
echo -e " * Any custom files/configuration will be removed."
if ! fn_prompt_yn "Continue?" Y; then
exitcode=0
core_exit.sh
fi

Loading…
Cancel
Save