mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Tweak to get back all partition data
This commit is contained in:
parent
9b53145489
commit
9d4a80ba02
2
inxi
2
inxi
|
@ -2332,7 +2332,7 @@ get_partition_data()
|
||||||
}
|
}
|
||||||
# skip all these, including the first, header line. Use the --exclude-type
|
# skip all these, including the first, header line. Use the --exclude-type
|
||||||
# to handle new filesystems types we do not want listed here
|
# to handle new filesystems types we do not want listed here
|
||||||
! /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$|^filesystem/ {
|
$NF !~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ {
|
||||||
# this is to avoid file systems with spaces in their names, that will make
|
# 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
|
# the test show the wrong data in each of the fields, if no x%, then do not use
|
||||||
if ( $(NF - 1) ~ /[0-9]+\%/ ) {
|
if ( $(NF - 1) ~ /[0-9]+\%/ ) {
|
||||||
|
|
Loading…
Reference in a new issue