Add correct IDs for arcolinux and arch linux

This commit is contained in:
RealStickman 2020-11-05 14:39:17 +01:00
parent 3650f8f5ae
commit 94c79372f1

View File

@ -62,14 +62,14 @@ cp -r ~/config/scripts/ ~/
sudo cp -r ~/config/etc /
# Distro specific stuff
distro=$(cat /etc/*-release | grep "DISTRIB_ID=")
distro=$(cat /etc/*-release | grep "^ID=")
#distro=$(lsb_release -a | grep "Distributor ID:")
if [ "$distro" == "DISTRIB_ID=ArcoLinux" ]; then
if [ "$distro" == "ID=arcolinux" ]; then
sudo mv /etc/arco-pacman.conf /etc/pacman.conf
fi
if [ "$distro" == "DISTRIB_ID=" ]; then
if [ "$distro" == "ID=arch" ]; then
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
fi