From 465dd47e7aa7f9a873925339fc63790a1ae839ea Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Thu, 10 Oct 2024 12:14:56 +0200 Subject: [PATCH] Try to improve things --- scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh b/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh index 1b02c14efa..967e7d3589 100755 --- a/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh +++ b/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh @@ -250,7 +250,7 @@ if [ "$LD_PRELOAD_MODE" -eq 1 ]; then for listed_lib in "${matched_libraries[@]}"; do # Matching to the .so or a symlink target is enough realpath_lib=$(realpath "$listed_lib") - if [[ "$lib" == "$listed_lib"* || "$lib" == "$realpath_lib" ]]; then + if [[ "$lib" == "$listed_lib"* || "$realpath_lib" == *"$lib" ]]; then found=true break fi