From 03bfd88be7aa25e26f14af71f3910b21829a9899 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Fri, 9 Jun 2017 10:42:02 -0700 Subject: [PATCH] bug fix, for legacy systems, they would not have opengl core version so the test for null had to be revised. --- inxi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 976a2a6..ff9db66 100755 --- a/inxi +++ b/inxi @@ -13023,17 +13023,19 @@ print_graphics_data() if [[ -z $glx_renderer ]];then glx_renderer='N/A' fi - if [[ -z $glx_version || -z $glx_core_version ]];then + if [[ -z $glx_version ]];then glx_version='N/A' else # non free drivers once filtered and cleaned show the same for core and compat - if [[ $glx_core_version != $glx_version ]];then + if [[ -n $glx_core_version && $glx_core_version != $glx_version ]];then glx_version=$glx_core_version if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then if [[ $glx_compat_version_nu != '' ]];then glx_version="$glx_version (compat-v$SEP3 $glx_compat_version_nu)" fi fi + elif [[ -z $glx_core_version ]];then + glx_version='N/A' fi fi