Skip to content

Instantly share code, notes, and snippets.

@sam-irl
Last active August 2, 2017 13:17
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 sam-irl/69bfc5974f1fb1f294c179b0292def53 to your computer and use it in GitHub Desktop.
Save sam-irl/69bfc5974f1fb1f294c179b0292def53 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' wget|grep "install ok installed")
echo Checking for wget: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "wget not found. Setting up wget."
sudo apt-get --force-yes --yes install wget
fi
sudo wget -O /usr/bin/cls https://git.io/v7u2q
sudo wget -O /usr/share/man/man1/cls.1.gz https://git.io/v7u2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment