[ubuntu] replace wget to download_with_retries helper (#3087)

This commit is contained in:
Aleksandr Chebotov
2021-04-02 18:47:50 +03:00
committed by GitHub
parent 0917a07677
commit be27ebfdb3
11 changed files with 32 additions and 18 deletions

View File

@@ -4,9 +4,12 @@
## Desc: Installs Alibaba Cloud CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install Alibaba Cloud CLI
URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux"))')
wget -P /tmp $URL
download_with_retries $URL "/tmp"
tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz
mv aliyun /usr/local/bin