fn_check_tmux 524 B

123456789101112131415161718
  1. #!/bin/bash
  2. # LGSM fn_check_tmux function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 110315
  6. # Checks if tmux is installed as too many users do not RTFM or know how to use Google.
  7. if [ -z "$(command -v tmux)" ]; then
  8. fn_printfailnl "Tmux not installed"
  9. sleep 1
  10. fn_scriptlog "Tmux is not installed"
  11. echo " * Tmux is required to run this server."
  12. # Suitable passive agressive message
  13. echo " * Please see the the following link."
  14. echo " * http://gameservermanagers.com/dependencies"
  15. exit
  16. fi