Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ubuntu24.04/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down