Last active
February 4, 2020 12:19
-
-
Save yooakim/22d40359c22fcaa834b0ef7274839d86 to your computer and use it in GitHub Desktop.
Update AzCopy to latest version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Simple bash script for downloading and updating AzCopy to the latest available version. | |
# | |
# Go home | |
cd $HOME | |
# Download AzCopy | |
wget https://aka.ms/downloadazcopy-v10-linux --no-verbose | |
# Expand Archive | |
tar -xvf downloadazcopy-v10-linux | |
#(Optional) Remove existing AzCopy version | |
if test -f /usr/bin/azcopy; then | |
sudo rm /usr/bin/azcopy | |
fi | |
#Move AzCopy to the destination and make it executable | |
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/ | |
sudo chmod +x /usr/bin/azcopy | |
# Cleanup | |
rm downloadazcopy-v10-linux* | |
rm -r azcopy_linux_amd64_*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment