Skip to content

Instantly share code, notes, and snippets.

@cam8001
Forked from teawithfruit/tidy5-install-ubuntu.sh
Last active February 22, 2016 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/46bf8c2f2bf8708054fc to your computer and use it in GitHub Desktop.
Save cam8001/46bf8c2f2bf8708054fc to your computer and use it in GitHub Desktop.
Install tidy5 on Ubuntu.
#!/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