Use cat /etc/*-release instead of lsb_release -a

This commit is contained in:
RealStickman 2020-11-05 13:40:14 +01:00
parent 1bc90da8ca
commit 3650f8f5ae

View File

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