forked from bindhosts/bindhosts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/bindhosts: validate input for custom_cron
This current code do not require bash (at least according to shellcheck) and the simplistic checks seem to work as expected from my limited basic tests. Basic standard expressions (e.g. * 12 * JAN 0) Non-standard expressions (e.g. @daily, * * * * 7) Complex expressions (e.g. 0,15,25 0-6 * * *, 0 0-2,2-24/4 * */2 *) Expression logic? e.g. * * 31 FEB * should be invalid because Feb do not have day 31 e.g. 1-59 * * * * is valid but not 59-1 * * * * rebased from: https://github.com/backslashxx/bindhosts/pull/36
- Loading branch information
1 parent
afadab5
commit 282f2eb
Showing
1 changed file
with
173 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters