bug fixes

This commit is contained in:
inxi-svn 2009-02-07 07:51:09 +00:00
parent 7086344a26
commit 0047d982e5

4
inxi
View file

@ -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'/ {