From 91424544de19ec45d482730bf34fa9a2799d2150 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 30 May 2018 14:41:50 -0300 Subject: Use -depht after path on find for GNU and BSD compatibility --- lib/keyringer/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3