From d96af71220f6636e1589e0fbc34c9d4eb5705e19 Mon Sep 17 00:00:00 2001 From: Isaac Powell <36595182+DeezyE@users.noreply.github.com> Date: Wed, 29 Dec 2021 21:59:30 +1000 Subject: [PATCH] additional grep command to correctly identify arch (#2251) --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 8426ee0c6..05baf91d5 100755 --- a/install +++ b/install @@ -90,7 +90,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= | grep -v "BUILD" | cut -d= -f2-) + DISTRO_ID=$(cat /etc/os-release | grep ID= | grep -v "BUILD" | grep -v "IMAGE" | cut -d= -f2-) if [ "${DISTRO_ID}" = 'kali' ] ; then Distro='Kali' elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'manjaro' ] ; then