mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Fix disk on OS X and FreeBSD
This commit is contained in:
11
neofetch
11
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
|
||||
|
Reference in New Issue
Block a user