Created
August 27, 2012 00:11
-
-
Save dlutzy/3484567 to your computer and use it in GitHub Desktop.
Test Driven Sysadmin 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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