mirror of
https://github.com/smxi/inxi.git
synced 2025-04-09 19:29:12 +00:00
changed from *** to ###, gensub doesn't like *, even escaped
This commit is contained in:
parent
5ac99045d4
commit
a9efabe032
1 changed files with 1 additions and 1 deletions
2
inxi
2
inxi
|
@ -1940,7 +1940,7 @@ get_partition_data()
|
|||
# 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 )
|
||||
partitionName=gensub( /^\/home\/(.*)\/(.*)/, "/home/###/\\2", 1, $NF )
|
||||
print partitionName "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",secondary"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue