[misc] upgrade tmux to 3.2
This commit is contained in:
parent
063611ea63
commit
b1ed92a7a0
|
@ -8,13 +8,13 @@ log 'Setting up tmux'
|
||||||
|
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
apt)
|
apt)
|
||||||
TMUX_VER=3.1b
|
TMUX_VER=3.2
|
||||||
if ! has_cmd tmux || [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
if ! has_cmd tmux || [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
||||||
sudo apt install libevent-dev libncurses5-dev bison autoconf bc -y
|
sudo apt install libevent-dev libncurses5-dev bison autoconf bc -y
|
||||||
TMUX_SRC_URL=https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
|
TMUX_SRC_URL=https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
|
||||||
if in_china; then
|
#if in_china; then
|
||||||
TMUX_SRC_URL="https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz"
|
#TMUX_SRC_URL="https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz"
|
||||||
fi
|
#fi
|
||||||
if [ ! -f /tmp/tmux.tar.gz ]; then
|
if [ ! -f /tmp/tmux.tar.gz ]; then
|
||||||
curl -L "$TMUX_SRC_URL" -o /tmp/tmux.tar.gz
|
curl -L "$TMUX_SRC_URL" -o /tmp/tmux.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user