From fa8469a2cd2fec7f176b3f3fae3f0860ed7528c5 Mon Sep 17 00:00:00 2001 From: Javier de la Morena <66418483+fdelamor@users.noreply.github.com> Date: Thu, 3 Jun 2021 08:37:12 +0200 Subject: [PATCH] [ubuntu] Update ORAS URL (#3516) --- images/linux/scripts/installers/oras-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/oras-cli.sh b/images/linux/scripts/installers/oras-cli.sh index 37b335594..5f96e334f 100644 --- a/images/linux/scripts/installers/oras-cli.sh +++ b/images/linux/scripts/installers/oras-cli.sh @@ -7,8 +7,8 @@ source $HELPER_SCRIPTS/install.sh # Determine latest ORAS CLI version -ORAS_CLI_LATEST_VERSION_URL=https://api.github.com/repos/deislabs/oras/releases/latest -ORAS_CLI_DOWNLOAD_URL=$(curl -s $ORAS_CLI_LATEST_VERSION_URL | jq -r '.assets[].browser_download_url | select(endswith("linux_amd64.tar.gz"))') +ORAS_CLI_LATEST_VERSION_URL=https://api.github.com/repos/oras-project/oras/releases/latest +ORAS_CLI_DOWNLOAD_URL=$(curl -sfL $ORAS_CLI_LATEST_VERSION_URL | jq -r '.assets[].browser_download_url | select(endswith("linux_amd64.tar.gz"))') ORAS_CLI_ARCHIVE=$(basename $ORAS_CLI_DOWNLOAD_URL) # Install ORAS CLI