From 44a12595f6b0618730b3c923e38d93d77b4f5676 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Thu, 17 Oct 2024 21:20:43 +0000 Subject: [PATCH] Update AWS SSO Signed-off-by: GitHub --- .../home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/src/aws/src/home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh b/features/src/aws/src/home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh index 6a9618f..b812768 100644 --- a/features/src/aws/src/home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh +++ b/features/src/aws/src/home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh @@ -2,13 +2,13 @@ # shellcheck disable=SC2016 PROMPT+='`\ - if [[ ${AWS_SSO_PROFILE} == *"development"* || ${AWS_SSO_PROFILE} == *"test"* ]]; then \ + if [[ ${AWS_SSO_PROFILE} == *"development"* ]]; then \ echo -n "[ aws: %{$fg[green]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \ + elif [[ ${AWS_SSO_PROFILE} == *"test"* ]]; then \ + echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \ elif [[ ${AWS_SSO_PROFILE} == *"preproduction"* ]]; then \ echo -n "[ aws: %{$fg[yellow]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \ elif [[ ${AWS_SSO_PROFILE} == *"production"* ]]; then \ echo -n "[ aws: %{$fg[red]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \ - elif [[ ! -z ${AWS_SSO_PROFILE} ]]; then \ - echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \ - fi \ + fi `'