From 0c4823019767373de211f0cdd2cd0498562daa1f Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Thu, 22 Aug 2024 12:24:21 +1100 Subject: [PATCH] fix more shell linter issues Signed-off-by: NikitaSkrynnik --- scripts/aws/aws-start.sh | 3 +-- scripts/gke/gke-start.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/aws/aws-start.sh b/scripts/aws/aws-start.sh index 415ab5c..2f7314c 100755 --- a/scripts/aws/aws-start.sh +++ b/scripts/aws/aws-start.sh @@ -7,7 +7,7 @@ export IAM_NAME=ebs-csi-controller-sa apt-get update && apt-get -y install curl dnsutils -curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_"$(uname -s)"_amd64.tar.gz" | tar xz -C /tmp; \ +curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp; \ mv /tmp/eksctl /usr/local/bin; \ eksctl version @@ -16,7 +16,6 @@ curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authen mv ./aws-iam-authenticator /usr/local/bin AWS_K8S_VERSION=$(echo "$K8S_VERSION" | cut -d "." -f 1-2 | cut -c 2-) -echo $AWS_K8S_VERSION eksctl create cluster \ --name "${AWS_CLUSTER_NAME}" \ --version "${AWS_K8S_VERSION}" \ diff --git a/scripts/gke/gke-start.sh b/scripts/gke/gke-start.sh index 2988a62..061398d 100755 --- a/scripts/gke/gke-start.sh +++ b/scripts/gke/gke-start.sh @@ -1,6 +1,6 @@ #!/bin/bash -K8S_VERSION=$(echo ${K8S_VERSION} | cut -d '.' -f 1,2 | cut -c 2-) +K8S_VERSION=$(echo "$K8S_VERSION" | cut -d '.' -f 1,2 | cut -c 2-) GKE_CLUSTER_VERSION=$(gcloud container get-server-config --zone="$GKE_CLUSTER_ZONE" --format=json \ | jq '.channels[] | select (.channel=="REGULAR") | .validVersions[]' \ | grep -m 1 "$K8S_VERSION" | tr -d '"')