[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

@@ -5,10 +5,13 @@
## Requires Python >=3.6, must be run as non-root user after toolset installation
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Download latest aws sam cli sources
TarballUrl=$(curl -s https://api.github.com/repos/aws/aws-sam-cli/releases/latest | jq -r '.tarball_url')
TarballPath="/tmp/aws-sam-cli.tar.gz"
wget $TarballUrl -O $TarballPath
download_with_retries $TarballUrl "/tmp" "aws-sam-cli.tar.gz"
tar -xzf $TarballPath -C /tmp
cd /tmp/aws-aws-sam-cli*