Excluding BUILD_ID while getting the distro ID
This commit is contained in:
2
install
2
install
@@ -86,7 +86,7 @@ install_linux () {
|
|||||||
Distro='Alpine'
|
Distro='Alpine'
|
||||||
elif [ -f /etc/os-release ] ; then
|
elif [ -f /etc/os-release ] ; then
|
||||||
#DISTRO_ID=$(grep ^ID= /etc/os-release | cut -d= -f2-)
|
#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
|
if [ "${DISTRO_ID}" = 'kali' ] ; then
|
||||||
Distro='Kali'
|
Distro='Kali'
|
||||||
elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'manjaro' ] ; then
|
elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'manjaro' ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user