Merge pull request #120 from medusalix/os-release

Improve os-release parsing
pull/148/head
jackun 4 years ago committed by GitHub
commit 12a528b894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}"

Loading…
Cancel
Save