feat(user_commands.bash): add check for nvidia-inst

This commit is contained in:
BluishHumility
2024-10-16 20:54:55 -04:00
parent de158a2d46
commit 3a8def9e60

View File

@@ -5,6 +5,13 @@ username="$1"
echo "Cloning the EOS Community Sway repo..." echo "Cloning the EOS Community Sway repo..."
git clone https://github.com/EndeavourOS-Community-Editions/sway.git git clone https://github.com/EndeavourOS-Community-Editions/sway.git
# Check if nvidia-inst is installed
if pacman -Qq nvidia-inst 2>/dev/null | grep -q .; then
# If it is, do the Nvidia stuff
# some Nvidia stuff
# some other Nvidia stuff
fi
# Install the custom package list # Install the custom package list
echo "Installing needed packages..." echo "Installing needed packages..."
pacman -S --noconfirm --noprogressbar --needed --disable-download-timeout $(< ./sway/packages-repository.txt) pacman -S --noconfirm --noprogressbar --needed --disable-download-timeout $(< ./sway/packages-repository.txt)