feat: install script re-org

This commit is contained in:
2026-02-13 15:13:12 +00:00
parent faf3bf2dfc
commit eb958a36e0
26 changed files with 5 additions and 3 deletions

30
install.d/42-azure.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install Azure CLI.
#
# Skip in Codespaces (project-specific tool)
[[ "$DOTS_ENV" == "codespaces" ]] && { log_skip "Codespaces"; return 0; }
if ! command -v az &>/dev/null; then
case "$DOTS_PKG" in
apt)
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
;;
pacman)
sudo pacman -S --noconfirm azure-cli &>/dev/null
;;
brew)
brew install azure-cli
;;
*)
log_warn "Skipping Azure CLI install: no supported package manager found"
;;
esac
fi
az --version
log_pass "Azure CLI installed"