From 7d6ed4d8486a2c871395a1ef09612cc898caa07d Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 2 May 2014 20:23:48 +0000 Subject: [PATCH] bsd cleanups --- inxi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 24a09b0..4aba524 100755 --- a/inxi +++ b/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