Liquibase execute-sql fails in docker entry point bash script called by azure pipeline

The script is below. I get the error that states that arguments on commandline must be preceded by “–”

but if I run it like that I get an error ( To display the help, please pass the ‘–help’ option on the command line.

19Unexpected error running Liquibase: Could not parse ‘–execute-sql’)

besides document says is how you run execute-sql

but running liquibase execute-sql this gives this error

Blockquote Unexpected error running Liquibase: Unexpected value ‘execute-sql’ (options must start with a ‘–’)

20For more information, please use the --logLevel flag

21Jun 10, 2024 4:20:00 PM liquibase.integration

22SEVERE: Unexpected error running Liquibase: Unexpected value ‘execute-sql’ (options must start with a ‘–’)

#!/bin/bash
set -e

if type “$1” > /dev/null 2>&1; then

if type “$1” > /dev/null 2>&1; then

First argument is an actual OS command. Run it

exec “$@”
else
if [[ “$" == –defaultsFile ]] || [[ "$” == –defaults-file ]] || [[ “$*” == –version ]]; then
## Just run as-is
liquibase execute-sql “$@”
else
## Include standard defaultsFile
liquibase execute-sql “–defaultsFile=/liquibase/dbaas/properties/liquibase.docker.properties” “$@”
fi
fi