Fix disk on OS X and FreeBSD
This commit is contained in:
parent
f5bd9a7841
commit
e3c5bbd8a2
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