mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +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 )
|
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||||
print item
|
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_item=$( echo "$dev_disk_label" | gawk '
|
||||||
/'$dev_label'/ {
|
/'$dev_label'/ {
|
||||||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||||
|
@ -2464,7 +2464,7 @@ get_partition_data_advanced()
|
||||||
/'$dev_item'$/ {
|
/'$dev_item'$/ {
|
||||||
print $(NF - 2)
|
print $(NF - 2)
|
||||||
}' )
|
}' )
|
||||||
if
|
fi
|
||||||
if [[ -n $dev_disk_label ]] && [[ -n $dev_item && -z $dev_label ]];then
|
if [[ -n $dev_disk_label ]] && [[ -n $dev_item && -z $dev_label ]];then
|
||||||
dev_label=$( echo "$dev_disk_label" | gawk '
|
dev_label=$( echo "$dev_disk_label" | gawk '
|
||||||
/'$dev_item'/ {
|
/'$dev_item'/ {
|
||||||
|
|
Loading…
Reference in a new issue