Просмотр исходного кода

Improved compatibility

Reduced the chance of there being an issue and not detecting tmux.
Daniel Gibbs 11 лет назад
Родитель
Сommit
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"