mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +00:00
* implement first pester tests * add comment for azcopy test * remove extra importing and old function * resolve comments * fix typo
22 lines
706 B
Bash
22 lines
706 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: azcopy.sh
|
|
## Desc: Installs AzCopy
|
|
################################################################################
|
|
|
|
source $HELPER_SCRIPTS/invoke-tests.sh
|
|
|
|
# Install AzCopy7
|
|
wget -O azcopy.tar.gz https://aka.ms/downloadazcopylinux64
|
|
tar -xf azcopy.tar.gz
|
|
rm azcopy.tar.gz
|
|
./install.sh
|
|
|
|
# Install AzCopy10
|
|
wget -O /tmp/azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
|
|
tar zxvf /tmp/azcopy.tar.gz --strip-components=1 -C /tmp
|
|
mv /tmp/azcopy /usr/local/bin/azcopy10
|
|
chmod +x /usr/local/bin/azcopy10
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
invoke_tests "Tools" "azcopy" |