Skip to content

Commit 44b6b01

Browse files
committed
flixible cron time scheduler
1 parent 37f5521 commit 44b6b01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

func/main.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,16 @@ validate_format_mhdmw() {
664664
check_format='ok'
665665
fi
666666
fi
667+
if [[ "$1" =~ ^[0-9][-|,|0-9]{0,28}[0-9]$ ]]; then
668+
check_format='ok'
669+
crn_values=${1//,/ }
670+
crn_values=${crn_values//-/ }
671+
for crn_vl in $crn_values; do
672+
if [ "$crn_vl" -gt $limit ]; then
673+
check_format='invalid'
674+
fi
675+
done
676+
fi
667677
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -lt $limit ]; then
668678
check_format='ok'
669679
fi

0 commit comments

Comments
 (0)