install_retry.sh 489 B

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