From aaab02a962ab690f029264ce230db55a3eb19727 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 11:13:24 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 13615cc..3370ed6 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -46,10 +46,9 @@ createHelmYaml() { # if KUBECONFIG_DATA is set if [[ -z "$KUBECONFIG_DATA" ]]; then echo "# Installing ~/.kube/config" - whoami - ls "/home/$(whoami)" mkdir -p ~/.kube echo "$KUBECONFIG_DATA" > ~/.kube/config + ls "~/.kube" fi # Check if the action environment variable is set to 'print' @@ -57,7 +56,7 @@ if [[ "$action" == "print" ]]; then createHelmYaml elif [[ -z "$KUBECONFIG_DATA" ]]; then head -n2 ~/.kube/config - echo "$KUBECONFIF_DATA" | head -n2 + echo "$KUBECONFIG_DATA" | head -n2 wc -l ~/.kube/config kubectl version --client=true else