use srm if available, this is OSX's secure remove utility

This commit is contained in:
mavenlink
2014-10-02 16:55:48 -07:00
parent 2ff15c6daf
commit fe10053e63

View File

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