gc/update: replace 'find -print | while read' with 'find -print0 | xargs -0'
commit168766b6bf5442533cc25e94d340b5fa4b56416d
authorKyle J. McKay <mackyle@gmail.com>
Fri, 24 Apr 2015 22:48:57 +0000 (24 15:48 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 24 Apr 2015 22:48:57 +0000 (24 15:48 -0700)
tree117bf6ddef9464a6c9a5715feda96ec5fb5d6318
parente666896b70d518934690fe2c6ad4dd75f73a0c65
gc/update: replace 'find -print | while read' with 'find -print0 | xargs -0'

It's much more effecient and easier to read but it depends on xargs not
doing a broken thing and running the command even when it didn't get
any arguments to run it with.

Fortunately we've previously dealt with that broken xargs behavior
by adding a wrapper to automatically supply the "don't behave wrongly"
option on platforms where it's needed so it's safe to make these changes.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc.sh
jobd/update.sh