aptible / supercronic

Cron for containers
MIT License
1.83k stars 110 forks source link

Support for multiline entries #104

Open RaphMad opened 2 years ago

RaphMad commented 2 years ago

While migrating some of my cronjobs to supercronic, I noticed that multiple lines joined together with the \ character work in cron, but are not supported in supercronic.

For example:

*/10 * * * * echo 'a' && \
                  echo 'b' && \
                  echo 'c'

Is a valid crontab entry for most classic crons, but is rejected by supercronics parser.

neurosnap commented 2 years ago

Greetings! Thanks for submitting this issue. I'd be happy to accept a PR (with tests) to support this feature.