potiuk commented on code in PR #36050:
URL: https://github.com/apache/airflow/pull/36050#discussion_r1414463596
##########
scripts/docker/clean-logs.sh:
##########
@@ -35,7 +35,7 @@ while true; do
-type f -mtime +"${RETENTION}" -name '*.log' -print0 | \
xargs -0 rm -f
- find "${DIRECTORY}"/logs -type d -empty -delete
+ trap find "${DIRECTORY}"/logs -type d -empty -delete ERR
Review Comment:
Why not just `find "${DIRECTORY}"/logs -type d -empty -delete || true` ?
That will ignore any errors. I think it should be pretty enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]