mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
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:
parent
1c960eefc2
commit
06b50b2946
9
inxi
9
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
|
||||
|
|
Loading…
Reference in a new issue