We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78caa05 commit 97d9e04Copy full SHA for 97d9e04
1 file changed
.devcontainer/Dockerfile
@@ -126,7 +126,7 @@ RUN if [ "$INSTALL_KUBECTL" = "true" ]; then \
126
KUBECTL_VERSION="$(curl -fsSL https://dl.k8s.io/release/stable.txt)" \
127
&& curl -fsSLo /tmp/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
128
&& curl -fsSLo /tmp/kubectl.sha256 "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" \
129
- && test "$(cat /tmp/kubectl.sha256)" = "$(sha256sum /tmp/kubectl | cut -d' ' -f1)" \
+ && (test "$(cat /tmp/kubectl.sha256)" = "$(sha256sum /tmp/kubectl | cut -d' ' -f1)" || (echo "kubectl checksum verification failed" && exit 1)) \
130
&& install -o root -g root -m 0755 /tmp/kubectl /usr/local/bin/kubectl \
131
&& rm -f /tmp/kubectl /tmp/kubectl.sha256; \
132
fi
0 commit comments