mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
commit
add956bb62
1 changed files with 7 additions and 3 deletions
10
func/main.sh
10
func/main.sh
|
@ -753,9 +753,13 @@ is_cron_format_valid() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -le $limit ]; then
|
crn_values=$(echo $1 |tr "," " " | tr "-" " ")
|
||||||
check_format='ok'
|
for crn_vl in $crn_values
|
||||||
fi
|
do
|
||||||
|
if [[ "$crn_vl" =~ ^[0-9]+$ ]] && [ "$crn_vl" -le $limit ]; then
|
||||||
|
check_format='ok'
|
||||||
|
fi
|
||||||
|
done
|
||||||
if [ "$check_format" != 'ok' ]; then
|
if [ "$check_format" != 'ok' ]; then
|
||||||
check_result $E_INVALID "invalid $2 format :: $1"
|
check_result $E_INVALID "invalid $2 format :: $1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue