Răsfoiți Sursa

Added fn_tmuxcheck for all the special people

Added fn_tmuxcheck for all the special people who do not know how to
RTFM or use Google then leave a comment asking what 'tmux: command not
found means' I'm not bitter...honest!
Daniel Gibbs 11 ani în urmă
părinte
comite
8a342c5ae1
1 a modificat fișierele cu 17 adăugiri și 0 ștergeri
  1. 17 0
      functions/fn_tmuxcheck

+ 17 - 0
functions/fn_tmuxcheck

@@ -0,0 +1,17 @@
+#!/bin/bash
+# LGSM fn_tmuxcheck function
+# Author: Daniel Gibbs
+# Website: http://danielgibbs.co.uk
+# Version: 011214
+
+# Checks if tmux is installed as too many users do not RTFM or know how to use Google.
+
+if [ -z $(command -v tmux) ]; then
+	fn_printfailnl "Tmux not installed"
+	sleep 1
+	fn_scriptlog "Tmux is not installed"
+	echo "	* Tmux is required to run this server."
+	# Suitable passive agressive message
+	echo "	* Please see 'Prerequisites' section of installation instructions."
+	exit
+fi