mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change if for optargs
This commit is contained in:
@@ -200,7 +200,8 @@ verify_latest_update_script() {
|
|||||||
while getopts ":b" opt; do
|
while getopts ":b" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
b ) # process option b
|
b ) # process option b
|
||||||
if [[ $OPTARG =~ '^[0-9]+$' ]]; then
|
re='^[0-9]+$'
|
||||||
|
if [[ $OPTARG =~ $re ]]; then
|
||||||
BATCHSIZE=$OPTARG
|
BATCHSIZE=$OPTARG
|
||||||
else
|
else
|
||||||
echo "Batch size must be a number greater than 0"
|
echo "Batch size must be a number greater than 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user