We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a21735 + 5a108be commit add956bCopy full SHA for add956b
func/main.sh
@@ -753,9 +753,13 @@ is_cron_format_valid() {
753
fi
754
done
755
756
- if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -le $limit ]; then
757
- check_format='ok'
758
- fi
+ crn_values=$(echo $1 |tr "," " " | tr "-" " ")
+ for crn_vl in $crn_values
+ do
759
+ if [[ "$crn_vl" =~ ^[0-9]+$ ]] && [ "$crn_vl" -le $limit ]; then
760
+ check_format='ok'
761
+ fi
762
+ done
763
if [ "$check_format" != 'ok' ]; then
764
check_result $E_INVALID "invalid $2 format :: $1"
765
0 commit comments