From 3f7c3ce5710eceaf59fd78e5e023925282b22f8e Mon Sep 17 00:00:00 2001 From: andrewwhitecdw Date: Wed, 12 Aug 2026 19:07:11 -0500 Subject: [PATCH] fix: deprecated '[ ! -z ... ]' instead of '-n' Signed-off-by: andrewwhitecdw --- ubuntu24.04/nvidia-driver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu24.04/nvidia-driver b/ubuntu24.04/nvidia-driver index 18345f751..d57d849cf 100755 --- a/ubuntu24.04/nvidia-driver +++ b/ubuntu24.04/nvidia-driver @@ -65,7 +65,7 @@ _cleanup_package_cache() { } _update_ca_certificates() { - if [ ! -z "$(ls -A /usr/local/share/ca-certificates)" ]; then + if [ -n "$(ls -A /usr/local/share/ca-certificates)" ]; then update-ca-certificates fi } @@ -298,7 +298,7 @@ _load_driver() { if [[ "$set_fw_path" == "true" ]]; then echo "Configuring the following firmware search path in '$fw_path_config_file': $nv_fw_search_path" - if [[ ! -z $(grep '[^[:space:]]' $fw_path_config_file) ]]; then + if [[ -n $(grep '[^[:space:]]' $fw_path_config_file) ]]; then echo "WARNING: A search path is already configured in $fw_path_config_file" echo " Retaining the current configuration" else