BShraman commented on a change in pull request #16978:
URL: https://github.com/apache/airflow/pull/16978#discussion_r669570559
##########
File path: scripts/in_container/prod/clean-logs.sh
##########
@@ -33,5 +32,5 @@ while true; do
find "${DIRECTORY}"/logs -mtime +"${RETENTION}" -name '*.log' -delete
seconds=$(( $(date -u +%s) % EVERY))
- [[ $seconds -lt 1 ]] || sleep $((EVERY - seconds))
+ (( "${seconds}" < 1 )) || sleep $((EVERY - seconds))
Review comment:
Suggested by google cheat-sheet for numerical comparison and for better
and simpler understanding
--
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]