Skip to content

Commit 44a1259

Browse files
author
Jacob Woffenden
authored
Update AWS SSO
Signed-off-by: GitHub <noreply@github.com>
1 parent 79c2eba commit 44a1259

File tree

1 file changed

+4
-4
lines changed
  • features/src/aws/src/home/vscode/.devcontainer/promptrc.d

1 file changed

+4
-4
lines changed

features/src/aws/src/home/vscode/.devcontainer/promptrc.d/aws-sso-cli.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# shellcheck disable=SC2016
33

44
PROMPT+='`\
5-
if [[ ${AWS_SSO_PROFILE} == *"development"* || ${AWS_SSO_PROFILE} == *"test"* ]]; then \
5+
if [[ ${AWS_SSO_PROFILE} == *"development"* ]]; then \
66
echo -n "[ aws: %{$fg[green]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
7+
elif [[ ${AWS_SSO_PROFILE} == *"test"* ]]; then \
8+
echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
79
elif [[ ${AWS_SSO_PROFILE} == *"preproduction"* ]]; then \
810
echo -n "[ aws: %{$fg[yellow]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
911
elif [[ ${AWS_SSO_PROFILE} == *"production"* ]]; then \
1012
echo -n "[ aws: %{$fg[red]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
11-
elif [[ ! -z ${AWS_SSO_PROFILE} ]]; then \
12-
echo -n "[ aws: %{$fg[blue]%}${AWS_SSO_PROFILE}@${AWS_DEFAULT_REGION}%{$reset_color%} ] "; \
13-
fi \
13+
fi
1414
`'

0 commit comments

Comments
 (0)