From 4d389fba1f05fed5c7f8d6fe52563617d53bbcd0 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Wed, 22 Oct 2025 17:17:38 -0700 Subject: [PATCH] cudaPackages.autoAddCudaCompatRunpath: format with shfmt and lint with ShellCheck Signed-off-by: Connor Baker --- .../autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh b/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh index d4b37cce05a7..000c911887a5 100644 --- a/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh +++ b/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh @@ -3,6 +3,7 @@ # coming from the cuda_compat package by adding it to the RUNPATH. echo "Sourcing auto-add-cuda-compat-runpath-hook" +# shellcheck disable=SC2157 if [[ -z "@libcudaPath@" ]]; then echo "auto-add-cuda-compat-runpath-hook: cuda_compat not available, skipping hook" return @@ -18,7 +19,7 @@ addCudaCompatRunpath() { elif [[ $# -gt 1 ]]; then nixLog "too many arguments" >&2 exit 1 - elif [[ "$1" == "" ]]; then + elif [[ $1 == "" ]]; then nixLog "empty library path" >&2 exit 1 else