Skip to content

Commit 82d6da7

Browse files
author
Jacob Woffenden
committed
Fix Cloud Platform prompt
Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
1 parent 892f65a commit 82d6da7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

features/src/cloud-platform/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11+
## [0.0.3] - 2024-02-01
12+
13+
### Changed
14+
15+
- Removed rogue `&&` from features/src/cloud-platform/src/home/vscode/.devcontainer/promptrc.d/cloud-platform.sh
16+
1117
## [0.0.2] - 2024-01-31
1218

1319
### Added

features/src/cloud-platform/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "cloud-platform",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"name": "Cloud Platform",
55
"description": "Installs the Cloud Platform CLI",
66
"options": {

features/src/cloud-platform/src/home/vscode/.devcontainer/promptrc.d/cloud-platform.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PROMPT+='`\
66
kubectlCurrentNamespace=$(kubectl config view --minify --output "jsonpath={..namespace}"); \
77
kubectlClientId=$(kubectl config view --output json | jq -r ".users[0].user[\"auth-provider\"].config[\"client-id\"]"); \
88
kubectlServerVersion=$(kubectl version --output json 2>/dev/null | jq -r .serverVersion.gitVersion | sed "s/v//"); \
9-
&& if [[ "${kubectlCurrentContext}" == "cloud-platform-live" ]] && [[ "${kubectlClientId}" == "REPLACE_WITH_CLIENT_ID" ]]; then \
9+
if [[ "${kubectlCurrentContext}" == "cloud-platform-live" ]] && [[ "${kubectlClientId}" == "REPLACE_WITH_CLIENT_ID" ]]; then \
1010
echo -n "[ cluster: %{$fg[yellow]%}${kubectlCurrentContext} (requires authentication)%{$reset_color%} ] "; \
1111
elif [[ "${kubectlCurrentContext}" == "cloud-platform-live" ]] && [[ ! -z "${kubectlServerVersion}" ]]; then \
1212
echo -n "[ cluster: %{$fg[green]%}${kubectlCurrentContext} (authenticated)%{$reset_color%} ] "; \

0 commit comments

Comments
 (0)