diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2023-07-22 03:37:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 03:37:10 +0300 |
commit | ea2d79070ec4e91361412a88ead2ec9b78266b92 (patch) | |
tree | 1db8516d55a39666f57b2cb54cd77f2997956351 /src/azure-cli/install.sh | |
parent | 7fcec6e7c9dd587b24096597367ef42e4a37465b (diff) |
Azure-cli - Temporary quick fix for jammy (ARM) (#626)feature_azure-cli_1.2.0
Diffstat (limited to 'src/azure-cli/install.sh')
-rwxr-xr-x | src/azure-cli/install.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/azure-cli/install.sh b/src/azure-cli/install.sh index 181d62f..9b0d72d 100755 --- a/src/azure-cli/install.sh +++ b/src/azure-cli/install.sh @@ -15,7 +15,7 @@ rm -rf /var/lib/apt/lists/* AZ_VERSION=${VERSION:-"latest"} AZ_EXTENSIONS=${EXTENSIONS} AZ_INSTALLBICEP=${INSTALLBICEP:-false} - +INSTALL_USING_PYTHON=${INSTALL_USING_PYTHON:-true} MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc" AZCLI_ARCHIVE_ARCHITECTURES="amd64" AZCLI_ARCHIVE_VERSION_CODENAMES="stretch buster bullseye bionic focal jammy" @@ -141,7 +141,12 @@ install_using_pip_strategy() { ver="==${AZ_VERSION}" fi - install_with_pipx "${ver}" || install_with_complete_python_installation "${ver}" || return 1 + # Temprary quick fix for https://github.com/devcontainers/features/issues/624 + if [ "${INSTALL_USING_PYTHON}" = "true" ]; then + install_with_complete_python_installation "${ver}" || install_with_pipx "${ver}" || return 1 + else + install_with_pipx "${ver}" || install_with_complete_python_installation "${ver}" || return 1 + fi } install_with_pipx() { |