Add fallback to getdisk

This commit is contained in:
Dylan 2016-01-26 22:25:08 +11:00
parent 7c0863db3d
commit 07b2c83f9a
1 changed files with 2 additions and 1 deletions

3
fetch
View File

@ -1011,7 +1011,8 @@ getdisk () {
case "$os" in case "$os" in
"Linux") df_flags="-h --total" ;; "Linux") df_flags="-h --total" ;;
"Mac OS X") df_flags="-H /" ;; "Mac OS X") df_flags="-H /" ;;
*"BSD") df_flags="-h -c" ;; "FreeBSD") df_flags="-h -c" ;;
*) disk="Unknown"; return ;;
esac esac
# Get the disk info # Get the disk info