On Sun, Mar 22, 2020 at 02:08:12AM +0100, Christian Weisgerber wrote:
> -       find ${PREFIX}/libexec/drush -name '*.orig' -exec rm {} +
> -       find ${PREFIX}/libexec/drush -name '.git' -type d -exec rm -rf {} +
> +       find ${PREFIX}/libexec/drush \                                        
>   
> +               -name '*.orig' -exec rm {} + -o \
> +               -name '.git' -type d -prune -exec rm -rf {} +
> 
> Exercise question: Why didn't I use -delete for *.orig here?
-delete implies depth-first traversal which conflicts with what -prune
should do.

Reply via email to