Fix disk on OS X and FreeBSD

This commit is contained in:
Dylan Araps 2016-08-26 13:03:22 +10:00
parent f5bd9a7841
commit e3c5bbd8a2

View file

@ -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