try removing ""

This commit is contained in:
inxi-svn 2009-02-07 03:54:37 +00:00
parent 11eaced89f
commit f1ec8f1a8b

6
inxi
View file

@ -2443,7 +2443,7 @@ get_partition_data_advanced()
# then if dev data/uuid is incomplete, try to get missing piece # then if dev data/uuid is incomplete, try to get missing piece
# it's more likely we'll get a uuid than a label. # it's more likely we'll get a uuid than a label.
if [[ -n "$dev_disk_uuid" ]];then if [[ -n $dev_disk_uuid ]];then
if [[ -n $dev_item && -z $dev_uuid ]];then if [[ -n $dev_item && -z $dev_uuid ]];then
dev_uuid=$( echo "$dev_disk_uuid" | gawk ' dev_uuid=$( echo "$dev_disk_uuid" | gawk '
/'$dev_item'$/ { /'$dev_item'$/ {
@ -2456,7 +2456,7 @@ get_partition_data_advanced()
print item print item
}' ) }' )
# last chance, if nothing found, check with uuid # last chance, if nothing found, check with uuid
elif [[ -n "$dev_disk_label" ]];then elif [[ -n $dev_disk_label ]];then
if [[ -z $dev_item && -n $dev_label ]];then if [[ -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'/ {
@ -2468,7 +2468,7 @@ get_partition_data_advanced()
fi fi
# first if the dev data/label data is incomplete, try to get missing piece # first if the dev data/label data is incomplete, try to get missing piece
if [[ -n "$dev_disk_label" ]];then if [[ -n $dev_disk_label ]];then
if [[ -n $dev_item && -z $dev_label ]];then if [[ -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'$/ {