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

Allan McRae allan at archlinux.org
Tue Jun 12 01:48:45 EDT 2012


On 12/06/12 11:48, Jeremy Huntwork wrote:
> 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.
> 


Am I missing something here?  How does that differ from the plain "rm -f
${pt}"?

Allan


More information about the pacman-dev mailing list