mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bsd cleanups
This commit is contained in:
parent
80f6061580
commit
7d6ed4d848
7
inxi
7
inxi
|
@ -7015,11 +7015,12 @@ get_partition_data()
|
|||
else {
|
||||
fileSystem=""
|
||||
}
|
||||
if ( bsdVersion != "darwin" ) {
|
||||
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main," fileSystem "," devBase
|
||||
# /dev/disk0s2 249G 24G 225G 10% 5926984 54912758 10% /
|
||||
if ( bsdVersion == "darwin" && $(NF - 4) ~ /[0-9]+%/ ) {
|
||||
print $NF "," $(NF - 7) "," $(NF - 6) "," $(NF - 4) ",main," fileSystem "," devBase
|
||||
}
|
||||
else {
|
||||
print $NF "," $(NF - 7) "," $(NF - 6) "," $(NF - 4) ",main," fileSystem "," devBase
|
||||
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main," fileSystem "," devBase
|
||||
}
|
||||
}
|
||||
# skip all these, including the first, header line. Use the --exclude-type
|
||||
|
|
Loading…
Reference in a new issue