From 45207c1a418272144895c4a37146cda97a06c656 Mon Sep 17 00:00:00 2001 From: Nico P <nickpoegel@aol.com> Date: Sun, 30 Oct 2022 16:49:59 +0100 Subject: [PATCH] fixed install_msa_test script --- install_msa_test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install_msa_test.sh b/install_msa_test.sh index 949b38c..c69a908 100644 --- a/install_msa_test.sh +++ b/install_msa_test.sh @@ -5,8 +5,8 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) curl -sfL https://get.k3s.io | sh - #Download Linkerd and install onto cluster -linkerd -if [$? -eq 0]; then +linkerd version +if [ $? -eq 0 ]; then echo Linkerd already installed else curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh @@ -19,8 +19,8 @@ linkerd install --crds | kubectl apply -f - linkerd install | kubectl apply -f - #Install Helm if not present -helm -if [$? -eq 0]; then +helm version +if [ $? -eq 0 ]; then echo Helm already installed else curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null @@ -38,10 +38,10 @@ while [ $counter -le $retries ] do ((counter++)) kubectl get ingressroute - if [$? -eq 0]; then + if [ $? -eq 0 ]; then break else - if [$counter -eq $retries]; then + if [ $counter -eq $retries ]; then echo CRDs are not yet available, please install helm-chart manually exit 1 fi -- GitLab