fix: arch setup
This commit is contained in:
@@ -7,10 +7,12 @@
|
||||
|
||||
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
|
||||
|
||||
if ! command -v python &>/dev/null; then
|
||||
pyenv install 3.12.1
|
||||
pyenv global 3.12.1
|
||||
local version="3.13.7"
|
||||
|
||||
if ! pyenv versions --bare | grep -q "$version"; then
|
||||
pyenv install "$version"
|
||||
fi
|
||||
pyenv global "$version"
|
||||
|
||||
pip3 install --quiet --upgrade --user pip
|
||||
python3 --version
|
||||
|
||||
@@ -48,12 +48,12 @@ if [[ -z "$SKIP_DOCKER_CONFIG" ]]; then
|
||||
|
||||
readonly docker_group="docker"
|
||||
if ! grep -q "$docker_group" /etc/group; then
|
||||
echo "Adding docker group"
|
||||
log_info "Adding docker group"
|
||||
sudo groupadd "$docker_group"
|
||||
fi
|
||||
|
||||
if ! groups "$USER" | grep -q "\b$docker_group\b"; then
|
||||
echo "Adding user to docker group"
|
||||
log_info "Adding user to docker group"
|
||||
sudo usermod -aG docker "$USER"
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
|
||||
@@ -11,11 +11,7 @@ if ! command -v az &>/dev/null; then
|
||||
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
|
||||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
||||
elif command -v pacman >/dev/null 2>&1; then
|
||||
if command -v yay >/dev/null 2>&1; then
|
||||
yay -S --noconfirm azure-cli-bin || log_warn "AUR install failed for azure-cli-bin"
|
||||
else
|
||||
log_warn "Skipping Azure CLI: no AUR helper found"
|
||||
fi
|
||||
sudo pacman -S --noconfirm azure-cli &>/dev/null
|
||||
else
|
||||
log_warn "Skipping Azure CLI install: no supported package manager found"
|
||||
fi
|
||||
|
||||
@@ -10,7 +10,7 @@ if ! command -v neofetch &>/dev/null; then
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
sudo apt-get install -qq neofetch &>/dev/null
|
||||
elif command -v pacman >/dev/null 2>&1; then
|
||||
sudo pacman -S --noconfirm neofetch &>/dev/null
|
||||
yay -S --noconfirm neofetch &>/dev/null
|
||||
else
|
||||
log_warn "Skipping neofetch install: no supported package manager found"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user