mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
try removing ""
This commit is contained in:
parent
11eaced89f
commit
f1ec8f1a8b
6
inxi
6
inxi
|
@ -2443,7 +2443,7 @@ get_partition_data_advanced()
|
|||
|
||||
# then if dev data/uuid is incomplete, try to get missing piece
|
||||
# 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
|
||||
dev_uuid=$( echo "$dev_disk_uuid" | gawk '
|
||||
/'$dev_item'$/ {
|
||||
|
@ -2456,7 +2456,7 @@ get_partition_data_advanced()
|
|||
print item
|
||||
}' )
|
||||
# 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
|
||||
dev_item=$( echo "$dev_disk_label" | gawk '
|
||||
/'$dev_label'/ {
|
||||
|
@ -2468,7 +2468,7 @@ get_partition_data_advanced()
|
|||
fi
|
||||
|
||||
# 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
|
||||
dev_label=$( echo "$dev_disk_label" | gawk '
|
||||
/'$dev_item'$/ {
|
||||
|
|
Loading…
Reference in a new issue