Re: [arch-projects] [dbscripts] [PATCH 2/3] ftpdir-cleanup, sourceballs: replace external find command with bash globbing

2018-02-17 Thread Eli Schwartz via arch-projects
On 02/17/2018 02:29 PM, Luke Shumaker wrote: > On Thu, 15 Feb 2018 22:45:03 -0500, > Eli Schwartz via arch-projects wrote: >> diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup >> index 2f3d5aa..2d33047 100755 >> --- a/cron-jobs/ftpdir-cleanup >> +++ b/cron-jobs/ftpdir-cleanup > ...

Re: [arch-projects] [dbscripts] [PATCH 2/3] ftpdir-cleanup, sourceballs: replace external find command with bash globbing

2018-02-17 Thread Luke Shumaker
On Thu, 15 Feb 2018 22:45:03 -0500, Eli Schwartz via arch-projects wrote: > diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup > index 2f3d5aa..2d33047 100755 > --- a/cron-jobs/ftpdir-cleanup > +++ b/cron-jobs/ftpdir-cleanup ... > -if [ ${#old_pkgs[@]} -ge 1 ]; then > +if ((

[arch-projects] [dbscripts] [PATCH 2/3] ftpdir-cleanup, sourceballs: replace external find command with bash globbing

2018-02-15 Thread Eli Schwartz via arch-projects
This fully removes the use of find from the codebase, leads to a micro-optimization in a couple cases, and ensures that $PKGEXT is consistently treated as a shell globbing character (which is important because it is used as one). Of the eight instances in these files: - One was unnecessary as