mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small tweak to make <username> to *** to make it shorter
This commit is contained in:
parent
e582218d3e
commit
5ac99045d4
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
|
# 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]+\%/ ) {
|
||||||
# cleaning up user name here to avoid showing too much info on irc
|
# cleaning up user name here to avoid showing too much info on irc
|
||||||
partitionName=gensub( /^\/home\/(.*)\/(.*)/, "/home/<username>/\\2", 1, $NF )
|
partitionName=gensub( /^\/home\/(.*)\/(.*)/, "/home/***/\\2", 1, $NF )
|
||||||
print partitionName "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",secondary"
|
print partitionName "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",secondary"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue