From 06b50b2946a80db4202bf3487400519f494c42fa Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 30 Jul 2009 00:21:12 +0000 Subject: [PATCH] bug fix for missing names for hard disks, now shows temp data content instead of Name n/a, which is more useful. --- inxi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index cea5d0b..d69d06a 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.1.1 +#### version: 1.1.2 #### Date: 29 July 2009 ######################################################################## #### SPECIAL THANKS @@ -2568,7 +2568,12 @@ get_hard_drive_data_advanced() fi break else - a_temp_working[2]="Name n/a" + # test to see if we can get a better name output when null + if [[ -n $temp_name ]];then + a_temp_working[2]=$temp_name + else + a_temp_working[2]="Name n/a" + fi fi done else