[MacOS] fix python installation order (#4052)

This commit is contained in:
Mikhail Koliada
2021-09-10 16:15:45 +03:00
committed by GitHub
parent d022b0d6a8
commit 06eef92e40
7 changed files with 14 additions and 15 deletions

View File

@@ -1,15 +1,9 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
echo Installing Azure CLI...
brew_smart_install "azure-cli"
echo Installing PowerShell...
brew install --cask powershell
# A dummy call of `az` to initialize ~/.azure directory before the modules are installed
az -v
# Install PowerShell modules
psModules=$(get_toolset_value '.powershellModules[].name')
for module in ${psModules[@]}; do
@@ -31,7 +25,4 @@ pwsh -command "& {Import-Module Az}"
# powershell link was removed in powershell-6.0.0-beta9
sudo ln -s /usr/local/bin/pwsh /usr/local/bin/powershell
# fix ~/.azure directory permissions
sudo chown -R ${USER}: $HOME/.azure
invoke_tests "Powershell"