mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
flixible cron time scheduler
This commit is contained in:
parent
37f55213ad
commit
44b6b01d78
1 changed files with 10 additions and 0 deletions
10
func/main.sh
10
func/main.sh
|
@ -664,6 +664,16 @@ validate_format_mhdmw() {
|
|||
check_format='ok'
|
||||
fi
|
||||
fi
|
||||
if [[ "$1" =~ ^[0-9][-|,|0-9]{0,28}[0-9]$ ]]; then
|
||||
check_format='ok'
|
||||
crn_values=${1//,/ }
|
||||
crn_values=${crn_values//-/ }
|
||||
for crn_vl in $crn_values; do
|
||||
if [ "$crn_vl" -gt $limit ]; then
|
||||
check_format='invalid'
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -lt $limit ]; then
|
||||
check_format='ok'
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue