[bugfix] directory structure
This commit is contained in:
parent
b1c271c0e4
commit
2d4b6fc819
|
@ -6,13 +6,13 @@ sudo apt install libevent-dev libncurses5-dev -y
|
||||||
|
|
||||||
TMUX_VER=3.1b
|
TMUX_VER=3.1b
|
||||||
#curl -L https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz -o /tmp/tmux.tar.gz
|
#curl -L https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz -o /tmp/tmux.tar.gz
|
||||||
curl -L https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz -o /tmp/tmux.tar.gz
|
[ ! -f /tmp/tmux.tar.gz ] && curl -L https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz -o /tmp/tmux.tar.gz
|
||||||
|
rm -rf /tmp/tmux
|
||||||
mkdir -p /tmp/tmux
|
mkdir -p /tmp/tmux
|
||||||
tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux
|
tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux --strip 1
|
||||||
pushd /tmp/tmux
|
pushd /tmp/tmux
|
||||||
[ -f autogen.sh ] && sh autogen.sh
|
[ -f autogen.sh ] && sh autogen.sh
|
||||||
./configure && make
|
./configure && make
|
||||||
sudo make install
|
sudo make install
|
||||||
rm -rf /tmp/tmux
|
|
||||||
rm -rf /tmp/tmux.tar.gz
|
|
||||||
popd
|
popd
|
||||||
|
rm -rf /tmp/tmux*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user