From 2d4b6fc8191bd47949454623ecc3c3848a1b359f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 2 Jun 2020 16:36:31 +0800 Subject: [PATCH] [bugfix] directory structure --- ubuntu/install-tmux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntu/install-tmux.sh b/ubuntu/install-tmux.sh index 8af1d96..e576ceb 100755 --- a/ubuntu/install-tmux.sh +++ b/ubuntu/install-tmux.sh @@ -6,13 +6,13 @@ sudo apt install libevent-dev libncurses5-dev -y 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://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 -tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux +tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux --strip 1 pushd /tmp/tmux [ -f autogen.sh ] && sh autogen.sh ./configure && make sudo make install -rm -rf /tmp/tmux -rm -rf /tmp/tmux.tar.gz popd +rm -rf /tmp/tmux*