From 0d0f48a907e7e9e3f54c9b9436815be64c64cee7 Mon Sep 17 00:00:00 2001 From: Romain Arnaud Date: Mon, 4 May 2026 14:51:32 -0400 Subject: [PATCH] docs: fix user feedback Add code to get the value of $ARCH. rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED --- docs/modules/ROOT/pages/getting-started.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/getting-started.adoc b/docs/modules/ROOT/pages/getting-started.adoc index 441edf0f4..56b3f2de2 100644 --- a/docs/modules/ROOT/pages/getting-started.adoc +++ b/docs/modules/ROOT/pages/getting-started.adoc @@ -149,7 +149,8 @@ Download `cosign` from the cluster: [source,bash] ---- tas_host=$(oc get route -A -l "app.kubernetes.io/part-of=trusted-artifact-signer,app.kubernetes.io/component=client-server" -o jsonpath='{.items[0].spec.host}') -curl -sSLo cosign.gz https://${tas_host}/clients/linux/cosign-${ARCH}.gz +ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') +curl --fail --location --output cosign.gz --show-error --silent https://${tas_host}/clients/linux/cosign-${ARCH}.gz gunzip cosign.gz chmod +x cosign ----