Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check release files:

if [ -f /etc/debian_version ]; then
    echo "This is debian based distro"
elif [ -f /etc/redhat-release ]; then
    echo "This is RedHat based distro"
else
    echo "This is something else"
fi