Last active
January 2, 2019 08:41
-
-
Save sid226/df4b7d9a09a97a4a73ab0c8a066b070b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
PACKAGE_NAME="go" | |
PACKAGE_VERSION="1.11.4" | |
#Verify if go is configured correctly | |
if go version | grep -q "$PACKAGE_VERSION" | |
then | |
printf -- "Installed %s %s successfully \n" "$PACKAGE_NAME" "$PACKAGE_VERSION" | |
else | |
printf -- "Error while installing Go, exiting with 127 \n"; | |
exit 127; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment