From 0047d982e5a94b18bb684652687982304c5d0f06 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 7 Feb 2009 07:51:09 +0000 Subject: [PATCH] bug fixes --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'/ {