This change fixes a bug causing the apex-downloader step to fail while deleting unnecessary files post-downloading.
Without the -prune flag, the find call in use attempts to rm -r directories within already-deleted subtrees and exits with an error code despite producing correct results. With the -prune flag, acting on a directory instead removes its children from further find processing, which is correct for already-recursive commands such as rm -r.
find
,-prune
, andrm -r
This change fixes a bug causing the
apex-downloader
step to fail while deleting unnecessary files post-downloading.Without the
-prune
flag, thefind
call in use attempts torm -r
directories within already-deleted subtrees and exits with an error code despite producing correct results. With the-prune
flag, acting on a directory instead removes its children from furtherfind
processing, which is correct for already-recursive commands such asrm -r
.