feat: Fixes entrypoint script that was not appropriately handling arguments to hpa script.
All checks were successful
CI / Run Tests (push) Successful in 2m31s
Build docker images / docker (push) Successful in 7m26s

This commit is contained in:
2025-11-13 14:59:35 -05:00
parent 45a1520a2b
commit 064976ed6e

View File

@@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
declare -a args
# Allows to attach to a shell inside the container, or run ansbile commands, # Allows to attach to a shell inside the container, or run ansbile commands,
# otherwise run the 'hpa' script with the given arguments. # otherwise run the 'hpa' script with the given arguments.
# #
@@ -16,7 +18,10 @@ while [[ $# -gt 0 ]]; do
exec "$@" exec "$@"
exit $? exit $?
else else
/usr/local/bin/hpa "$@" args+=("$1")
fi fi
shift shift
done done
# If we made it here then run the hpa script.
/usr/local/bin/hpa "${args[@]}"