remove redundant elif

use regex or instead of having of adding another elif
This commit is contained in:
i-c-u-p 2022-04-25 05:23:08 +00:00 committed by GitHub
parent af35f44baa
commit 134fdf09d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -118,10 +118,8 @@ if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then
nvidia-xconfig nvidia-xconfig
elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then
pacman -S --noconfirm --needed xf86-video-amdgpu pacman -S --noconfirm --needed xf86-video-amdgpu
elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then elif grep -E "Integrated Graphics Controller|Intel Corporation UHD" <<< ${gpu_type}; then
pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
elif grep -E "Intel Corporation UHD" <<< ${gpu_type}; then
pacman -S --needed --noconfirm libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
fi fi
#SETUP IS WRONG THIS IS RUN #SETUP IS WRONG THIS IS RUN
if ! source $HOME/ArchTitus/configs/setup.conf; then if ! source $HOME/ArchTitus/configs/setup.conf; then