aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-30 14:41:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-30 14:41:50 -0300
commit91424544de19ec45d482730bf34fa9a2799d2150 (patch)
treeb3eea7d18ad577a70d8650722dd851d789229cd3
parent15b2331aafcb65e38021f0879a90bd45a7a1ead5 (diff)
downloadkeyringer-91424544de19ec45d482730bf34fa9a2799d2150.tar.gz
keyringer-91424544de19ec45d482730bf34fa9a2799d2150.tar.bz2
Use -depht after path on find for GNU and BSD compatibility
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 72286ff..d529daf 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -218,7 +218,7 @@ function keyringer_shred {
$tool -rf $path
else
find $path -type f -exec $tool -uf {} \;
- find -d $path -type d -exec rmdir {} \;
+ find $path -depth -type d -exec rmdir {} \;
fi
else
if [ "$tool" == "wipe" ] || [ "$tool" == "rm" ] || [ "$tool" == "rm -P" ]; then