From afac92aa2db4b401df720aaba9e536fd10018ed7 Mon Sep 17 00:00:00 2001 From: andrewwhitecdw Date: Wed, 12 Aug 2026 19:07:22 -0500 Subject: [PATCH] fix: unused devices_found variable and unquoted path Signed-off-by: andrewwhitecdw --- ubuntu24.04/nvidia-driver | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ubuntu24.04/nvidia-driver b/ubuntu24.04/nvidia-driver index 18345f751..ec00fc8ed 100755 --- a/ubuntu24.04/nvidia-driver +++ b/ubuntu24.04/nvidia-driver @@ -193,11 +193,10 @@ _ensure_nvlink5_prerequisites() ( # Check if mellanox devices are present _mellanox_devices_present() { - devices_found=0 for dev in /sys/bus/pci/devices/*; do - read vendor < $dev/vendor + read vendor < "$dev/vendor" if [ "$vendor" = "0x15b3" ]; then - echo "Mellanox device found at $(basename $dev)" + echo "Mellanox device found at $(basename "$dev")" return 0 fi done