diff --git a/inxi b/inxi index 79f1cf1..086c965 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.0.1 -#### Date: 11 February 2009 +#### version: 1.0.2 +#### Date: 14 February 2009 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -2331,6 +2331,12 @@ get_partition_data() $NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ && ! /aufs/ { print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" } + # this is required because below we are subtracting from NF, so it has to be + # > 1, actually greater than 4, but that is so unlikely to occur because + # the real issue is long file system names that force the wrap of df output: //fileserver/main + ( NF == 1 ) { + getline + } # skip all these, including the first, header line. Use the --exclude-type # to handle new filesystems types we do not want listed here $NF !~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ {