From 3650f8f5ae28e90e0e8fd3dd5b2f94d3e288343e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 5 Nov 2020 13:40:14 +0100 Subject: [PATCH] Use cat /etc/*-release instead of lsb_release -a --- arch-config/scripts/arcolinux-config.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch-config/scripts/arcolinux-config.sh b/arch-config/scripts/arcolinux-config.sh index c9367847..90c0e96b 100644 --- a/arch-config/scripts/arcolinux-config.sh +++ b/arch-config/scripts/arcolinux-config.sh @@ -62,13 +62,14 @@ cp -r ~/config/scripts/ ~/ sudo cp -r ~/config/etc / # Distro specific stuff -distro=$(lsb_release -a | grep "Distributor ID:") +distro=$(cat /etc/*-release | grep "DISTRIB_ID=") +#distro=$(lsb_release -a | grep "Distributor ID:") -if [ "$distro" == "Distributor ID: ArcoLinux" ]; then +if [ "$distro" == "DISTRIB_ID=ArcoLinux" ]; then sudo mv /etc/arco-pacman.conf /etc/pacman.conf fi -if [ "$distro" == "Distributor ID: " ]; then +if [ "$distro" == "DISTRIB_ID=" ]; then sudo mv /etc/arch-pacman.conf /etc/pacman.conf fi