diff --git a/build.sh b/build.sh index 79929690..9305c713 100755 --- a/build.sh +++ b/build.sh @@ -19,7 +19,7 @@ for os_release in ${OS_RELEASE_FILES[@]} ; do if [[ ! -e "${os_release}" ]]; then continue fi - DISTRO=$(sed 1q ${os_release} | sed 's/NAME=//g' | sed 's/"//g') + DISTRO=$(sed -rn 's/^NAME="(.+)"/\1/p' ${os_release}) done dependencies() { @@ -65,7 +65,7 @@ dependencies() { DEPS="{glibc-devel.i686,libstdc++-devel.i686,libX11-devel.i686}" install ;; - *"buntu"|"Linux Mint"|"Debian"|"Zorin OS"|"Pop!_OS"|"elementary OS") + *"buntu"|"Linux Mint"|"Debian GNU/Linux"|"Zorin OS"|"Pop!_OS"|"elementary OS") MANAGER_QUERY="dpkg-query -s" MANAGER_INSTALL="apt install" DEPS="{gcc,g++,gcc-multilib,g++-multilib,ninja-build,python3-pip,python3-setuptools,python3-wheel,pkg-config,mesa-common-dev,libx11-dev:i386}"