deal with tmux not knowing -V for version. If unknown, tmux version
authorJoerg Jaspert <joerg@debian.org>
Mon, 18 Mar 2013 20:44:59 +0000 (21:44 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 18 Mar 2013 20:44:59 +0000 (21:44 +0100)
is now hardcoded to 1.3

bin/tm

diff --git a/bin/tm b/bin/tm
index 33ab928..7bb107d 100755 (executable)
--- a/bin/tm
+++ b/bin/tm
@@ -75,7 +75,7 @@ unset bindex
 declare -r cmdline=${1:-""}
 
 # Get the tmux version and split it in major/minor
-TMUXVERS=$(tmux -V)
+TMUXVERS=$(tmux -V 2>/dev/null || echo "tmux 1.3")
 declare -r TMUXVERS=${TMUXVERS##* }
 declare -r TMUXMAJOR=${TMUXVERS%%.*}
 declare -r TMUXMINOR=${TMUXVERS##*.}