From e9d889f719aac78c6feef81c2f72300d729e1490 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 30 Jul 2020 11:33:19 -0400 Subject: [PATCH] fix 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 3f1aea956..597bf99df 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"