fix: enhance argument handling in start-azurite script to support container configuration
This commit is contained in:
@@ -8,9 +8,9 @@ AZURITE_IMAGE="${AZURITE_IMAGE:-azurite:latest}"
|
|||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--no-oauth)
|
--no-oauth|--no-caddy)
|
||||||
# OAuth support
|
# Pass these flags to the container, so that it can configure Azurite accordingly.
|
||||||
CONTAINER_ARGS+=("--no-oauth")
|
CONTAINER_ARGS+=("$1")
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-d|--azurite-dir)
|
-d|--azurite-dir)
|
||||||
@@ -23,8 +23,8 @@ while [[ $# -gt 0 ]]; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CONTAINER_ARGS+=("$1")
|
echo "Error: Unknown argument: $1" >&2
|
||||||
shift
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user