mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small tweak to logic of partitions
This commit is contained in:
parent
1a2b56ac3e
commit
945ffef2b5
4
inxi
4
inxi
|
@ -2898,10 +2898,10 @@ get_partition_data()
|
|||
}
|
||||
# this has to be nulled for every iteration so it does not retain value from last iteration
|
||||
devBase=""
|
||||
# this is required because below we are subtracting from NF, so it has to be > 4
|
||||
# this is required because below we are subtracting from NF, so it has to be > 5
|
||||
# the real issue is long file system names that force the wrap of df output: //fileserver/main
|
||||
# but we still need to handle more dynamically long space containing file names, but later.
|
||||
( NF < 5 ) && ( $0 !~ /[0-9]+\%/ ) {
|
||||
( NF < 6 ) && ( $0 !~ /[0-9]+\%/ ) {
|
||||
# set the dev location here for cases of wrapped output
|
||||
if ( NF == 1 ){
|
||||
devBase=gensub( /^(\/dev\/)(.+)$/, "\\2", 1, $1 )
|
||||
|
|
Loading…
Reference in a new issue