updated install_azure_cli.sh

pull/2/head
Hari Sekhon 5 years ago
parent 00c6cebea1
commit 1961ac6758

@ -62,7 +62,11 @@ EOF
elif [ "$uname_s" = Darwin ]; then
brew install azure-cli
elif [ "$uname_s" = Linux ]; then
curl -L https://aka.ms/InstallAzureCli | bash
if type -P apk &>/dev/null; then
# only works on Alpine 3 - Alpine 2.x doesn't support --no-cache and nor does it have Python 3 package dependency which Azure CLI requires
apk add --no-cache curl python3 python3-dev alpine-sdk musl-dev libffi-dev openssl-dev
fi
yes | curl -L https://aka.ms/InstallAzureCli | bash
echo
echo "OS '$uname_s' is not Mac / Linux - not supported"
exit 1

Loading…
Cancel
Save