install_retry.sh 431 B

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