potiuk commented on a change in pull request #16978:
URL: https://github.com/apache/airflow/pull/16978#discussion_r669312282
##########
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:
However it should be simpler:
```suggestion
(( seconds < 1 )) || sleep $((EVERY - seconds))
```
in math expression there is no need for either quoting or '$'
--
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]