install_retry.sh 400 B

12345678910111213141516
  1. #!/bin/bash
  2. # LGSM install_retry.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. local modulename="Install"
  6. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  7. while true; do
  8. read -e -i "y" -p "Retry install? [Y/n]" yn
  9. case $yn in
  10. [Yy]* ) command_install.sh; exit;;
  11. [Nn]* ) echo Exiting; exit;;
  12. * ) echo "Please answer yes or no.";;
  13. esac
  14. done