Merge pull request #844 from djs55/mac-trim

Use TRIM on Mac as well as Windows
This commit is contained in:
Justin Cormack 2016-12-06 08:13:01 -08:00 committed by GitHub
commit 681dfb2548

View File

@ -1,4 +1,8 @@
#!/bin/sh
# Windows always has TRIM support, clean out unused frequently
[ "$(mobyplatform)" = "windows" ] && /sbin/fstrim /var
# Windows and Mac have TRIM support, clean out unused frequently
case "$(mobyplatform)" in
"windows"|"mac")
/sbin/fstrim /var
;;
esac