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