Use cat /etc/*-release instead of lsb_release -a
This commit is contained in:
parent
1bc90da8ca
commit
3650f8f5ae
@ -62,13 +62,14 @@ cp -r ~/config/scripts/ ~/
|
|||||||
sudo cp -r ~/config/etc /
|
sudo cp -r ~/config/etc /
|
||||||
|
|
||||||
# Distro specific stuff
|
# 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
|
sudo mv /etc/arco-pacman.conf /etc/pacman.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$distro" == "Distributor ID: " ]; then
|
if [ "$distro" == "DISTRIB_ID=" ]; then
|
||||||
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
|
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user