From 9ed740b9cd8eeedbd2e21a6740a948f5355eb70b Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Wed, 30 Sep 2026 16:18:29 -0700 Subject: [PATCH] Keep selected Maestro phases alphabetically ordered --- hack/maestro-config.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hack/maestro-config.sh b/hack/maestro-config.sh index 3e4f433f2..23d67ef5e 100755 --- a/hack/maestro-config.sh +++ b/hack/maestro-config.sh @@ -26,6 +26,14 @@ if [ $# -gt 0 ]; then done fi +# Subset argument order must not change the phase's reporting order. +if [ ${#logged_out[@]} -gt 1 ]; then + mapfile -t logged_out < <(printf '%s\n' "${logged_out[@]}" | sort) +fi +if [ ${#logged_in[@]} -gt 1 ]; then + mapfile -t logged_in < <(printf '%s\n' "${logged_in[@]}" | sort) +fi + flows=(setup/server-setup.yaml "${logged_out[@]}") if [ $# -eq 0 ] || [ ${#logged_in[@]} -gt 0 ] || [ "${login:-false}" = true ]; then flows+=(setup/oauth-login.yaml "${logged_in[@]}") -- knotmirror 0.0.1