فهرست منبع

Improved compatibility

Reduced the chance of there being an issue and not detecting tmux.
Daniel Gibbs 11 سال پیش
والد
کامیت
434abff77a
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      functions/fn_check_tmux

+ 4 - 2
functions/fn_check_tmux

@@ -2,11 +2,13 @@
 # LGSM fn_check_tmux function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 110315
+# Version: 170415
 
 # Checks if tmux is installed as too many users do not RTFM or know how to use Google.
 
-if [ -z "$(command -v tmux)" ]; then
+if [ "$(command -v tmux)" ]||[ "$(which tmux)" ]||[ -f "/usr/bin/tmux" ]; then
+	:
+else
 	fn_printfailnl "Tmux not installed"
 	sleep 1
 	fn_scriptlog "Tmux is not installed"