Skip to content

Instantly share code, notes, and snippets.

@dlutzy
Created August 27, 2012 00:11
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 dlutzy/3484567 to your computer and use it in GitHub Desktop.
Save dlutzy/3484567 to your computer and use it in GitHub Desktop.
Test Driven Sysadmin 2
#!/bin/bash
if which links > /dev/null
then
echo "Test passed. links is already installed"
else
echo "Test failed. links is not installed, installing now..."
echo "apt-get -y install links"
apt-get -y install links
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment