Skip to content

Commit

Permalink
fix more shell linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Aug 22, 2024
1 parent c52662b commit 0c48230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/aws/aws-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/gke/gke-start.sh
Original file line number Diff line number Diff line change
@@ -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 '"')
Expand Down

0 comments on commit 0c48230

Please sign in to comment.