fn_check_tmux 499 B

1234567891011121314151617
  1. #!/bin/bash
  2. # LGSM fn_check_tmux function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 140215
  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 'Prerequisites' section of installation instructions."
  14. exit
  15. fi