-
-
Save miiraheart/5225886071e8cac48d64536282a22617 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TMATE_URL=https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz | |
VERSION_FILENAME=$(basename -s .tar.xz "${TMATE_URL}") | |
DEPLOY_DIR=/opt/tmate | |
sudo mkdir -p /opt/tmate | |
cd /opt/tmate | |
sudo curl -RLOJ "${TMATE_URL}" | |
sudo tar -xJvf "${VERSION_FILENAME}.tar.xz" | |
sudo ln -sf "${DEPLOY_DIR}/${VERSION_FILENAME}/tmate" "/usr/local/bin/tmate" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment