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
#!/usr/bin/env bash | |
## Test for Debian | |
if [ -x "$(command -v lsb_release)" ] | |
then | |
lsb_release -a | |
fi | |
## Test for RHEL | |
if [ -e /etc/redhat-release ] | |
then | |
cat /etc/redhat-release | |
fi | |
## Test for Ubuntu | |
if [ -e /etc/lsb-release ] | |
then | |
cat /etc/lsb-release | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment