Skip to content

Instantly share code, notes, and snippets.

@dlutzy
Created Aug 27, 2012
Embed
What would you like to do?
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