From 9ca54a84f648a241d02cf21e79fcc19dec403124 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 11 Feb 2009 18:00:19 +0000 Subject: [PATCH] bug fix --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index cea5eaf..4d73c5a 100755 --- a/inxi +++ b/inxi @@ -2325,12 +2325,12 @@ get_partition_data() BEGIN { IGNORECASE=1 } - /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$/ && ! /aufs/ { + /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ && ! /aufs/ { print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" } # skip all these, including the first, header line. Use the --exclude-type # to handle new filesystems types we do not want listed here - ! /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ { + ! /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$|^filesystem/ { # this is to avoid file systems with spaces in their names, that will make # the test show the wrong data in each of the fields, if no x%, then do not use if ( $(NF - 1) ~ /[0-9]+\%/ ) {