Skip to content

Instantly share code, notes, and snippets.

@sid226
Last active January 2, 2019 08:41
Show Gist options
  • Save sid226/df4b7d9a09a97a4a73ab0c8a066b070b to your computer and use it in GitHub Desktop.
Save sid226/df4b7d9a09a97a4a73ab0c8a066b070b to your computer and use it in GitHub Desktop.
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