From e3c5bbd8a244d1fc95a528e1f9498c5b979f339b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 26 Aug 2016 13:03:22 +1000 Subject: [PATCH] Fix disk on OS X and FreeBSD --- neofetch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index c2c41f52..bd47d4d2 100755 --- a/neofetch +++ b/neofetch @@ -1482,7 +1482,11 @@ getdisk() { "Mac OS X" | "BSD") case "$distro" in - "FreeBSD"* | *"OS X"* ) df_flags="-H / -l" ;; + "FreeBSD"* | *"OS X"* ) + df_flags="-l -H /" + df_dir="/" + ;; + *) return ;; esac ;; @@ -2978,11 +2982,6 @@ main() { getargs "$@" getdistro - # Temp command to test travis - if [ "$os" == "Mac OS X" ]; then - df -H / -l - fi - # Get colors and bold bold colors