diff --git a/inxi b/inxi index 117ef3f..11dba41 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.4.16 -#### Date: September 26 2010 +#### version: 1.4.17 +#### Date: September 29 2010 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -3153,7 +3153,7 @@ get_partition_data() if [[ -n $( grep -E '(by-uuid|by-label)' <<< ${a_partition_working[6]} ) ]];then if [[ -n $DEV_DISK_UUID ]];then dev_item=$( echo "$DEV_DISK_UUID" | gawk ' - /'$( basename ${a_partition_working[6]} )'$/ { + /'$( basename ${a_partition_working[6]} )'/ { item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF ) print item }' ) @@ -3161,7 +3161,7 @@ get_partition_data() # if we didn't find anything for uuid try label if [[ -z $dev_item && -n $DEV_DISK_LABEL ]];then dev_item=$( echo "$DEV_DISK_LABEL" | gawk ' - /'$( basename ${a_partition_working[6]} )'$/ { + /'$( basename ${a_partition_working[6]} )'/ { item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF ) print item }' )