From 1c5e6fa10f393bfede9db595b9444b069c8b6b45 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 30 Jul 2020 11:39:58 -0400 Subject: [PATCH] change if for optargs --- 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 597bf99df..d47c0f834 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]+$' ]]; then BATCHSIZE=$OPTARG else echo "Batch size must be a number greater than 0"