mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
fixed cron validation
This commit is contained in:
parent
0e9526e06e
commit
a7eadc00f9
1 changed files with 2 additions and 1 deletions
|
@ -727,10 +727,11 @@ is_cron_format_valid() {
|
|||
check_format='ok'
|
||||
fi
|
||||
fi
|
||||
if [[ "$1" =~ ^[0-9][-|,|0-9]{0,28}[0-9]$ ]]; then
|
||||
if [[ "$1" =~ ^[0-9][-|,|0-9]{0,70}[\/][0-9]$ ]]; then
|
||||
check_format='ok'
|
||||
crn_values=${1//,/ }
|
||||
crn_values=${crn_values//-/ }
|
||||
crn_values=${crn_values//\// }
|
||||
for crn_vl in $crn_values; do
|
||||
if [ "$crn_vl" -gt $limit ]; then
|
||||
check_format='invalid'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue