Example content:
NAME="Arch Linux ARM"
ID=archarm
ID_LIKE=arch
PRETTY_NAME="Arch Linux ARM"
ANSI_COLOR="0;36"
HOME_URL="http://archlinuxarm.org/"
SUPPORT_URL="https://archlinuxarm.org/forum"
BUG_REPORT_URL="https://github.com/archlinuxarm/PKGBUILDs/issues"
I should probably update the others to use os-release too, but I'm
putting that off for now.
export OS='Gentoo'
elif [ "${SHELL#*gentoo}" != "${SHELL}" ]; then # assumes 'gentoo' in prefix
export OS='Gentoo Prefix'
+ elif grep -i '^ID=.*arch' /etc/os-release > /dev/null 2>&1; then
+ export OS='Arch'
elif grep -i debian /etc/issue > /dev/null 2>&1; then
export OS='Debian'
elif grep -i ubuntu /etc/issue > /dev/null 2>&1; then