mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Cron format validation fix
-lt is 'lower than', so if you have wday=7 it will not be valid, which is wrong, because wday range is 0-7. Changed to -le which means 'lower or equal'
This commit is contained in:
parent
b57c4dcd7b
commit
b1e1635443
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ is_cron_format_valid() {
|
|||
fi
|
||||
done
|
||||
fi
|
||||
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -lt $limit ]; then
|
||||
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -le $limit ]; then
|
||||
check_format='ok'
|
||||
fi
|
||||
if [ "$check_format" != 'ok' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue