← Back to context

Comment by dherls

2 months ago

I would definitely recommend not putting complex logic like this in your cron definitions. Much more annoying to find and debug in the future. I prefer to write a short wrapper script that contains the test logic instead and track/version control it

Good advice. You can also check in and version your crontabs (or timer units or whatnot) directly.