[pacman-dev] [PATCH 2/2] Allow wildcards in PURGE_TARGETS to match any type of file except for directories.

Jeremy Huntwork jhuntwork at lightcubesolutions.com
Mon Jun 11 21:48:13 EDT 2012

On Monday, June 11, 2012 at 9:26 PM, Jeremy Huntwork wrote:
> This is what I'm after. Instead of else ; rm -f ${pt}, maybe do:
> else ; find "${pt%*}" ! -type d -name "${pt##/*}" -exec rm -f -- '{}' +

Ugh, typos in my substitutions. should be

find "${pt%/*}" ! -type d -name "${pt##*/}" -exec rm -f -- '{}' +

That's what I get for sending emails when I'm tired.


More information about the pacman-dev mailing list