Merge pull request #23 from mavenlink/add-osx-srm-support

use srm if available, this is OSX's secure remove utility
This commit is contained in:
Tom Limoncelli
2014-10-03 12:20:54 -04:00

View File

@@ -202,6 +202,10 @@ function shred_file() {
if which shred >/dev/null ; then if which shred >/dev/null ; then
CMD=shred CMD=shred
OPT=-u OPT=-u
elif which srm >/dev/null ; then
#NOTE: srm by default uses 35-pass Gutmann algorithm
CMD=srm
OPT=-f
else else
CMD=rm CMD=rm
OPT=-f OPT=-f