Replaced -prune with -maxdepth 1 because -delete automatically turns on -depth.
Reverted the second command back to its original state as -delete can't delete directories that aren't empty. ** Patch added: "apport.patch" https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1954311/+attachment/5554429/+files/apport.patch -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1954311 Title: Daily cron job script unnecessarily executes `find` with `rm` instead of using its '-delete' action Status in apport package in Ubuntu: New Bug description: Executing `rm` as a separate process each time for every single file is unnecessary and inefficient. The option '-delete' should be used instead. Patch is included below. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1954311/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp