Created
June 4, 2015 00:33
-
-
Save jordanwesthoff/1df657ecc4851a60cf6c to your computer and use it in GitHub Desktop.
Yum installation test
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
pkg="wget" | |
if yum -qq install $pkg; then | |
echo "Successfully installed $pkg" | |
else | |
echo "Error installing $pkg" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment