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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user