From: Silvio Rhatto Date: Wed, 30 May 2018 17:41:50 +0000 (-0300) Subject: Use -depht after path on find for GNU and BSD compatibility X-Git-Tag: 0.5.3~1 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=91424544de19ec45d482730bf34fa9a2799d2150;p=keyringer.git Use -depht after path on find for GNU and BSD compatibility --- 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