Forked from teawithfruit/tidy5-install-ubuntu.sh
Last active
February 22, 2016 20:46
-
-
Save cam8001/46bf8c2f2bf8708054fc to your computer and use it in GitHub Desktop.
Install tidy5 on Ubuntu.
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 | |
# Check if user is root | |
if [ $(id -u) != "0" ]; then | |
echo "Error: You must be root to run this script, please use root to install the software." | |
exit 1 | |
fi | |
apt-get remove libtidy-0.99-0 tidy -y | |
wget -O /tmp/tidy-5.1.25-64bit.deb http://binaries.html-tidy.org/binaries/tidy-5.1.25/tidy-5.1.25-64bit.deb | |
dpkg -i /tmp/tidy-5.1.25-64bit.deb | |
rm /tmp/tidy-5.1.25-64bit.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run like:
sudo -s
bash <(curl -s https://gist.githubusercontent.com/cam8001/46bf8c2f2bf8708054fc/raw/82efaa81893ccf48723e5de38a209ea89692817e/tidy5-install-ubuntu.sh)