From 2222bce77baacd50e25b61e143d65593b2e65cf2 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 30 Jul 2020 11:22:12 -0400 Subject: [PATCH] update regex --- salt/common/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 0eeef490a..3f1aea956 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -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"