bug fix for missing names for hard disks, now shows temp data content instead of Name n/a, which is more useful.

This commit is contained in:
inxi-svn 2009-07-30 00:21:12 +00:00
parent 1c960eefc2
commit 06b50b2946

7
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.1.1
#### version: 1.1.2
#### Date: 29 July 2009
########################################################################
#### SPECIAL THANKS
@ -2567,9 +2567,14 @@ get_hard_drive_data_advanced()
a_temp_working[3]='USB'
fi
break
else
# 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
a_temp_working[2]="Name n/a"