diff --git a/inxi b/inxi index 13e8047..1c9a48b 100755 --- a/inxi +++ b/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'/ {