I try to run bash scripts in Docker, buit I keep getting this error:

> 
> ./scripts/proto-generator.sh: line 13: syntax error: unexpected "(" (expecting "then")
> 
> 
> 

Here's my proto-generator.sh file:

```bash
function printGreen() {
    printf "\e[0;32m$1\e[0;m\n"
}

function printRed() {
    printf "\e[0;31m$1\e[0;m\n"
}

service=$1
outDir=./src/services/$service/models
protoDir=./protos/"${service}Service"/*.proto

if ! [[ "$service" =~ ^(file|user)$ ]]; then
    printRed "Incorrect service: $service"
    exit 1
fi

./node_modules/.bin/proto-loader-gen-types \
    --longs=String \
    --enums=String \
    --defaults \
    --oneofs \
    --grpcLib=@grpc/grpc-js \
    --outDir=$outDir \
    $protoDir

printGreen "GRPC codes generated: ${outDir}"

```

How can I fix the syntax error?

Thanks for any help!!