fix regex

This commit is contained in:
m0duspwnens
2020-07-30 11:33:19 -04:00
parent 2222bce77b
commit e9d889f719

View File

@@ -200,7 +200,7 @@ verify_latest_update_script() {
while getopts ":b" opt; do
case ${opt} in
b ) # process option b
if [[ $OPTARG =~ ^[0-9]+$ ]] && [[ $OPTARG -gt 0 ]]; then
if [[ $OPTARG =~ '^[0-9]+$' ]] && [[ $OPTARG -gt 0 ]]; then
BATCHSIZE=$OPTARG
else
echo "Batch size must be a number greater than 0"