aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/keyringer/functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index b8f91a7..72286ff 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -217,7 +217,8 @@ function keyringer_shred {
if [ "$tool" == "wipe" ] || [ "$tool" == "rm" ] || [ "$tool" == "rm -P" ]; then
$tool -rf $path
else
- find $path -exec $tool -uf {} \;
+ find $path -type f -exec $tool -uf {} \;
+ find -d $path -type d -exec rmdir {} \;
fi
else
if [ "$tool" == "wipe" ] || [ "$tool" == "rm" ] || [ "$tool" == "rm -P" ]; then