mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Fix batch size regex to disallow 0
This commit is contained in:
@@ -1023,7 +1023,7 @@ while getopts ":b:f:y" opt; do
|
|||||||
case ${opt} in
|
case ${opt} in
|
||||||
b )
|
b )
|
||||||
BATCHSIZE="$OPTARG"
|
BATCHSIZE="$OPTARG"
|
||||||
if ! [[ "$BATCHSIZE" =~ ^[0-9]+$ ]]; then
|
if ! [[ "$BATCHSIZE" =~ ^[1-9][0-9]*$ ]]; then
|
||||||
echo "Batch size must be a number greater than 0."
|
echo "Batch size must be a number greater than 0."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user