From 2463b71ca858171cf8e57bfa88fb0a3b79c6aa9a Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 11 Feb 2009 17:58:19 +0000 Subject: [PATCH] Fixed small fredforfaen bug with /home being in name of path, but not being home, so checking now for starting with /home, /, /var etc --- inxi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inxi b/inxi index b59f17f..cea5eaf 100755 --- a/inxi +++ b/inxi @@ -2330,13 +2330,10 @@ get_partition_data() } # 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]+\%/ ) { - # cleaning up user name here to avoid showing too much info on irc - # partitionName=gensub( /^\/home\/(.*)\/(.*)/, "/home/###/\\2", 1, $NF ) - # print partitionName "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",secondary" print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",secondary" } }