fn_check_tmux 574 B

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