From 69333f366eceb2b392c5ead17b6d4e7cf9127ebb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 01:43:08 +0900 Subject: [PATCH] woops --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b243c29..d4ba5fb 100755 --- a/install.sh +++ b/install.sh @@ -88,12 +88,13 @@ sleep 1 printf "\n%.0s" {1..1} # install pciutils if detected not installed. Necessary for detecting GPU -if ! zypper se -i pciutils > /dev/null; then +if ! dpkg -l | grep -w pciutils > /dev/null; then echo "pciutils is not installed. Installing..." | tee -a "$LOG" sudo apt install -y pciutils printf "\n%.0s" {1..1} fi + # Path to the install-scripts directory script_directory=install-scripts