From 134fdf09d8a0fdd5303f54f5a9160867a7791de8 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Mon, 25 Apr 2022 05:23:08 +0000 Subject: [PATCH] remove redundant elif use regex or instead of having of adding another elif --- scripts/1-setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/1-setup.sh b/scripts/1-setup.sh index 6ad2f93..62cd7ab 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -118,10 +118,8 @@ if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then nvidia-xconfig elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then 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 -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 #SETUP IS WRONG THIS IS RUN if ! source $HOME/ArchTitus/configs/setup.conf; then