Skip to content

Instantly share code, notes, and snippets.

@calbertts
Last active January 6, 2020 00:18
Show Gist options
  • Save calbertts/85d12674a21cc20f414835590a294b67 to your computer and use it in GitHub Desktop.
Save calbertts/85d12674a21cc20f414835590a294b67 to your computer and use it in GitHub Desktop.
echo -e "\n Downloading formatcss...\n"
platform=`uname -s`
distro=`cat /etc/*-release 2>/dev/null | grep ^ID=[A-Za-z]* | sed s/ID=/-/g | sed s/\"//g`
arch=`uname -m`
curl -sL -o /usr/bin/formatcss github.com/calbertts/formatcss/releases/latest/download/formatcss-$platform$distro-$arch
chmod a+x /usr/bin/formatcss
echo -e "\n Great!, now you can run 'formatcss' from anywhere\n\n Try with:\n \e[92mformatcss --url https://www.w3schools.com/w3css/4/w3.css\n\n\e[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment