Excluding BUILD_ID while getting the distro ID

This commit is contained in:
Jesus Cuesta
2019-03-03 13:39:17 +01:00
committed by GitHub
parent f24a25f6b1
commit 00dca685c1

View File

@@ -86,7 +86,7 @@ install_linux () {
Distro='Alpine'
elif [ -f /etc/os-release ] ; then
#DISTRO_ID=$(grep ^ID= /etc/os-release | cut -d= -f2-)
DISTRO_ID=$(cat /etc/os-release | grep ID= | cut -d= -f2-)
DISTRO_ID=$(cat /etc/os-release | grep ID= | grep -v "BUILD" | cut -d= -f2-)
if [ "${DISTRO_ID}" = 'kali' ] ; then
Distro='Kali'
elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'manjaro' ] ; then