(change version)

bug fix for long file system names in partition data, now correctly shows those too.
This commit is contained in:
inxi-svn 2009-02-15 05:09:28 +00:00
parent 82d1116006
commit 2cb135761f

10
inxi
View file

@ -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/ {