Last active
August 25, 2016 20:58
-
-
Save dfrankland/fa7a4218113dd6de6931c2e1907df82d to your computer and use it in GitHub Desktop.
Bash script to install HyperTerm (https://hyperterm.org). You'll need to run this script with `sudo`.
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
#! /bin/bash | |
if [ -n "$SUDO_USER" ] | |
then | |
CURRENT_USER=$SUDO_USER | |
else | |
CURRENT_USER=$USER | |
fi | |
LATEST_VERSION=$(curl -s "https://github.com/zeit/hyperterm/releases/latest" | sed -E 's/^.*?tag\/v(.*?)".*?$/\1/g') | |
FILE_NAME="hyperterm-$LATEST_VERSION.deb" | |
URL="https://github.com/zeit/hyperterm/releases/download/v$LATEST_VERSION/$FILE_NAME" | |
echo -e "\nDownloading lastest HyperTerm package from: $URL.\n" | |
curl -L $URL > "./$FILE_NAME" | |
chown $CURRENT_USER: "./$FILE_NAME" | |
apt-get update | |
apt-get install libindicator7 libappindicator1 | |
dpkg -i "./$FILE_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment