mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fixes
This commit is contained in:
parent
7086344a26
commit
0047d982e5
4
inxi
4
inxi
|
@ -2451,7 +2451,7 @@ get_partition_data_advanced()
|
|||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||
print item
|
||||
}' )
|
||||
elif [[ -n $dev_disk_label ]] && [[ -z $dev_item && -n $dev_label ]]
|
||||
elif [[ -n $dev_disk_label ]] && [[ -z $dev_item && -n $dev_label ]];then
|
||||
dev_item=$( echo "$dev_disk_label" | gawk '
|
||||
/'$dev_label'/ {
|
||||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||
|
@ -2464,7 +2464,7 @@ get_partition_data_advanced()
|
|||
/'$dev_item'$/ {
|
||||
print $(NF - 2)
|
||||
}' )
|
||||
if
|
||||
fi
|
||||
if [[ -n $dev_disk_label ]] && [[ -n $dev_item && -z $dev_label ]];then
|
||||
dev_label=$( echo "$dev_disk_label" | gawk '
|
||||
/'$dev_item'/ {
|
||||
|
|
Loading…
Reference in a new issue