Skip to content
Permalink
Browse files

fix(mtaserver): auto-install no longer waits at a prompt (#2418)

  • Loading branch information...
Bourne-ID authored and dgibbs64 committed Aug 28, 2019
1 parent 81c9e51 commit 3d43c4ce5762528d8ac98dd9504a5fd82083f643
Showing with 8 additions and 3 deletions.
  1. +8 −3 lgsm/functions/command_install_resources_mta.sh
@@ -19,7 +19,12 @@ fn_install_resources(){

fn_print_header

fn_print_warning_nl "Installing the default resources with existing resources may cause issues."
if fn_prompt_yn "Do you want to install MTA default resources?" Y; then
fn_install_resources
if [ -z "${autoinstall}" ]; then
fn_print_warning_nl "Installing the default resources with existing resources may cause issues."
if fn_prompt_yn "Do you want to install MTA default resources?" Y; then
fn_install_resources
fi
else
fn_print_warning_nl "Default resources are not installed when using ./${selfname} auto-install."
fn_print_information_nl "To install default resources use ./${selfname} install"
fi

0 comments on commit 3d43c4c

Please sign in to comment.
You can’t perform that action at this time.