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
7
inxi
7
inxi
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue